hasOne('App\Models\User','id','user_id'); } public function goods() { return $this->hasOne('App\Models\Goods','id','goods_id')->withTrashed(); } }