applicant-site/app/Models/DirectionProfile.php

27 lines
539 B
PHP
Raw Permalink Normal View History

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;
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',
];
public function direction(): BelongsToMany
2024-02-26 10:58:02 +03:00
{
return $this->belongsToMany(Direction::class);
2024-02-26 10:58:02 +03:00
}
}