Solution:1
View::share();
is the best way to make a global variable.
View::share('name', 'Steve');
To make sure a certain variable is included every time a certain view is rendered, I like View Composers
You can include stuff when certain views are rendered. I suppose you could use it on your master layout(s), to make things almost global. It gives more control, which would be good if you need something widely available, but if it is sensitive and you don’t want it everywhere.
View::composer('profile', function($view)
{
$view->with('count', User::count());
});