LEATH
您需要在产品模型中建立关系。class Product extends Model{ public function category() { return $this->belongsTo('App\Category','category_id','id'); } public function color() { return $this->belongsTo('App\Color','color_id','id'); } public function size() { return $this->belongsTo('App\Size','size_id','id'); } public function brand() { return $this->belongsTo('App\Brand','brand_id','id'); }}现在在控制器中你可以得到如下。$products = Product::with(['category','color','size','brand'])->get();