Support the ongoing development of Laravel.io →

thomas159

Joined 16 Oct 2014

Statistics

Threads 2
Replies 2
Solutions 2
Articles 0

View Composer to pass variable to all views

Hi, I have created a view composer to pass through the variable 'categories' to all views but I get...

0 Likes
1 Replies
Solved

Passing multiple variables in to a controller view

Hi, I am trying to get the url e.g localhost/cat/restaurants/this-is-a-test but it throws an error w...

0 Likes
1 Replies
Solved
replied 7 years ago

View Composer to pass variable to all views

I have solved this by following this excellent tutorial https://scotch.io/tutorials/sharing-data-bet...

0 Likes
Solved
replied 8 years ago

Passing multiple variables in to a controller view

I have solved this by using $slugs = Review::with('reviewimages','maps','categorys') ->whereHas('...

0 Likes
Solved

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.