i'm a laravel newbie and i'm trying to pass a string to a view, from a controller. As i understand it, it should be something like this:
return Redirect::route('home')->with('global','Hi!');
I'm trying to redirect a user to 'home', but have the string 'Hi!' show up before everything else. 'home' is a route that renders a view 'home.blade.php'.
As it is, the user is redirected, no errors, but the string "Hi!" doesn't show up on the 'home ' view. I am thinking i need something on the 'home' blade template to tell laravel where to put the string "Hi!", but what should that be?