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



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uHZMT2
via IFTTT

Aucun commentaire:

Enregistrer un commentaire