Hi,
blade code is PHP code. You can fetch the categories inside the view instead of passing them in.
@foreach(...\Models\Category::all() as $c)
Firtzberg
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community