jeudi 27 juillet 2017

laravel 5.4 use where in blade template

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