I would personally do everything within the controller, and just return the vars with a with() to my view and then output it.
.. if that's what you were asking for?
You rlly shoudnt query databse inside foreach in view :)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community