want to add flash message in laravel 7 by stack overflow 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');