In Laravel, the best way to pass different types of flash messages in the session
Clash Royale CLAN TAG #URR8PPP In Laravel, the best way to pass different types of flash messages in the session I'm making my first app in Laravel and am trying to get my head around the session flash messages. As far as I'm aware in my controller action I can set a flash message either by going Redirect::to('users/login')->with('message', 'Thanks for registering!'); //is this actually OK? For the case of redirecting to another route, or Session::flash('message', 'This is a message!'); In my master blade template I'd then have: @if(Session::has('message')) <p class="alert alert-info"> Session::get('message') </p> @endif As you may have noticed I'm using Bootstrap 3 in my app and would like to make use of the different message classes: alert-info , alert-warning , alert-danger etc. alert-info alert-warning alert-danger Assuming that in my controller I know what type of message I'...