hasMany('App\AsetProjectImage', 'project_id', 'id'); } public function detail() { return $this->hasOne('App\AsetProjectDetail', 'project_id', 'id'); } }