how to get multiple tables value in by eloquent in laravel..??
Below my query builder codes, I want to write the codes in eloquent.
Pls let me know the full procedure.
$productById = DB::table('products')
->join('categories','products.categoryID', '=', 'categories.id' )
->join('manufacturers','products.manufacturerID', '=', 'manufacturers.id' )
->select('products.*','categories.categoryName','manufacturers.manufacturerName')
->where('products.id', $id)
->first();
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire