hasOne(CostProject::class, 'id', 'project_id'); } public function dept() { return $this->hasOne(Dept::class, 'id', 'depar'); } }