jeudi 3 novembre 2016

using Where in views Laravel 5.1

I'm relative new in laravel, in my first app I have a method in the controller that pass a list of links to the view, but in the view I only need some of those links so in the view I have this:

$links->where('menu_id', 2)

This works in my developer environment but don't work in production server.

Someone knows why? or knows another way to filter the results in the view?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire