hasOne(Admin::class, 'id', 'admin_id'); } public function department(){ return $this->hasOne(Department::class,'id','department_id'); } }