hasOne('App\User', 'id', 'client_id'); } public function tasks() { return $this->hasMany('App\Models\Task','proj_id','id'); } public function documents() { return $this->hasMany('App\Models\ProjAttachment','proj_id','id'); } public function proj_assign() { return $this->hasMany('App\Models\AssignProject','proj_id','id'); } }