2024-02-15 09:58:01 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
|
|
|
|
class EducationForm extends Model
|
|
|
|
{
|
|
|
|
use HasFactory;
|
|
|
|
|
|
|
|
protected $fillable = [
|
|
|
|
'id',
|
|
|
|
'name',
|
|
|
|
'description',
|
|
|
|
'slug',
|
|
|
|
];
|
|
|
|
|
|
|
|
public function directions(): HasMany
|
|
|
|
{
|
|
|
|
return $this->hasMany('App\Models\Direction', 'education_form_id');
|
|
|
|
}
|
2024-02-19 18:55:44 +03:00
|
|
|
|
|
|
|
public function places(): HasMany
|
|
|
|
{
|
|
|
|
return $this->hasMany('App\Models\Place', 'education_form_id');
|
|
|
|
}
|
2024-02-15 09:58:01 +03:00
|
|
|
}
|