This question already has an answer here:
My controller is :
$product = ProductCatalog::where(['campaign_id' => $campaign_id])->get();
foreach($product as $productValue)
{
$id=$productValue['product_id'];
$product_detail[]=Product::where(['id' => $id])->get();
print($product_detail);
}
My Output is :
[{"id":26,"vendor_id":8,"product_name":"mjdhc","price":100,"image":"1517989593-titan-logo.jpg","discription":"dfgbfhrtyb","created_at":"2018-02-06 18:16:33","updated_at":"2018-02-06 18:16:33"}][{"id":27,"vendor_id":8,"product_name":"cdczsd","price":45,"image":"1519302850-3.jpg","discription":"gbfdbv","created_at":"2018-02-21 23:04:11","updated_at":"2018-02-21 23:04:11"}]
I want to print this whole output in blade file
How to show this values in blade file?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire