belongsTo(Department::class); } public function educationLevel(): BelongsTo { return $this->belongsTo(EducationLevel::class); } public function educationForm(): BelongsTo { return $this->belongsTo(EducationForm::class); } public function entranceExaminations(): HasMany { return $this->hasMany('App\Models\EntranceExamination', 'direction_id'); } public function places(): HasMany { return $this->hasMany('App\Models\Place', 'direction_id'); } }