Menu
I have some data that I want to share with all the views of my application, without repeating the code on each return of a view in the controller. I’ve found the snippet <code> View::share(‘data’, [1, 2, 3]); </code>, but I’m not sure where to place this?