session flast in view blade laravel code example
Example: how to use flash message in laravel
Session::flash('message', 'This is a message!');
Session::flash('alert-class', 'alert-danger');
Session::flash('message', 'This is a message!');
Session::flash('alert-class', 'alert-danger');