Roman_applicant-site/app/Models/DirectionProfile.php

27 lines
496 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class DirectionProfile extends Model
{
use HasFactory;
protected $fillable = [
'id',
'name',
'description',
'slug',
'position',
'direction_id'
];
public function direction(): BelongsTo
{
return $this->belongsTo(Direction::class);
}
}