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