belongsTo(User::class); } public function detail(){ return $this->hasMany(ProjectDetail::class); } }