applicant-site/app/Models/Direction.php

32 lines
601 B
PHP
Raw Normal View History

2024-02-10 11:23:38 +03:00
<?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',
2024-02-14 16:16:44 +03:00
'slug',
'code',
2024-02-10 11:23:38 +03:00
];
public function department(): BelongsTo
{
return $this->belongsTo(Department::class);
}
2024-02-14 16:16:44 +03:00
public function educationLevel(): BelongsTo
{
return $this->belongsTo(EducationLevel::class);
}
2024-02-10 11:23:38 +03:00
}