forked from aslan/applicant-site
25 lines
452 B
PHP
25 lines
452 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
||
|
class Direction extends Model
|
||
|
{
|
||
|
use HasFactory;
|
||
|
|
||
|
protected $fillable = [
|
||
|
'id',
|
||
|
'name',
|
||
|
'description',
|
||
|
'position',
|
||
|
];
|
||
|
|
||
|
public function department(): BelongsTo
|
||
|
{
|
||
|
return $this->belongsTo(Department::class);
|
||
|
}
|
||
|
}
|