Wednesday, April 12, 2017

One associative array used across all controllers, one place to define it? - Laravel 5.3

I have an associative array which I use in approx all controllers and i was wondering if possible to define that array somewhere at one place and just use in in all controllers?

Kind of like we do in angular.

Like if i can define it in env file or something.

Please let me know if there is a way.



via Learner

Advertisement