dbfdg hasOne('App\Models\Branch', 'id', 'branch'); } public function types() { return $this->hasOne('App\Models\TrainingType', 'id', 'training_type'); } public function employees() { return $this->hasOne('App\Models\Employee', 'id', 'employee'); } public function trainers() { return $this->hasOne('App\Models\Trainer', 'id', 'trainer'); } }