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