dbfdg hasOne('App\Models\Branch', 'id', 'branch'); } public function departments() { return $this->hasOne('App\Models\Department', 'id', 'department'); } public function designations() { return $this->hasOne('App\Models\Designation', 'id', 'designation'); } public function user() { return $this->hasOne('App\Models\User', 'id', 'created_user'); } }