Support the ongoing development of Laravel.io →
Alok

Alok

Joined 20 Jun 2017

Statistics

Threads 0
Replies 2
Solutions 0
Articles 0

alok has not posted any threads yet

replied 6 years ago

Restrict user from all controller's route

You can use auth middleware, or if you want more customised then you can make your own middleware ac...

0 Likes
replied 6 years ago

Is there a way to pass every variable in a controller action, to the view automatically?

You can use view composer or view share to share the variables in the view Blade files.

0 Likes

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.