2024-02-26 10:58:02 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
2024-02-29 18:01:23 +03:00
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
|
2024-02-26 10:58:02 +03:00
|
|
|
|
|
|
|
class DirectionProfile extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'id',
|
|
|
|
'name',
|
|
|
|
'description',
|
|
|
|
'slug',
|
|
|
|
'position',
|
|
|
|
];
|
|
|
|
|
2024-02-29 18:01:23 +03:00
|
|
|
public function direction(): BelongsToMany
|
2024-02-26 10:58:02 +03:00
|
|
|
{
|
2024-02-29 18:01:23 +03:00
|
|
|
return $this->belongsToMany(Direction::class);
|
2024-02-26 10:58:02 +03:00
|
|
|
}
|
|
|
|
}
|