what is the correct syntax to write this code in laravel 5.4
@foreach($productChuck as $product where $product->category_id = 1)
//some date this section @endforeach
all I want is display only those product that has category_id of 1
thanks in advance
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire