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 ei
If you want to use Bootstrap Alert to make your view more interactive. You can do something like this:
In your function:-
if($author->save()){
Session::flash('message', 'Author has been successfully added');
Session::flash('class', 'success'); //you can replace success by [info,warning,danger]
return redirect('main/successlogin');
In your views:-
@if(Session::has('message'))
{{ Session::get('message') }}
@endif