Support the ongoing development of Laravel.io →

rusticboy103

Joined 11 Apr 2015

Statistics

Threads 1
Replies 2
Solutions 0
Articles 0

How to set an array varible to global for all controllers and views?

Hi Guys! As the title, I have an Array varible named is $commonConfig, and I want use it in all Cont...

Likes Replies
Solved
replied 7 years ago

How to set an array varible to global for all controllers and views?

Xum said: Or you could use a View Composer: View composers are callbacks or class methods that are...

0 Likes
replied 7 years ago

How to set an array varible to global for all controllers and views?

ModestasV said: Hello, Could you specify on what purpose do you want to do that? Maybe a better sol...

0 Likes

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.