Thank you a lot . One of the best channel to learn from it .God bless you sir !!
@julienSibille4 жыл бұрын
So usefull ! Thanks !
@julienSibille4 жыл бұрын
With the get() then filter->is_active you get the entire collection then you filter it. Should not we filter the eloquent query instead ? Like Product::whereIsActive('1')->get() ?
@Laratips4 жыл бұрын
Yup we should always use filtering through eloquent query rather than collection. Since this tutorial is about collection, so I did in that way. I should have also mentioned that in the video. Anyways thanks for mentioning that.