laravel controller return message

Solutions on MaxInterview for laravel controller return message by the best coders in the world

showing results for - "laravel controller return message"
Olivia
16 Aug 2018
1#In Controller
2use Session;
3       
4Session::flash('message', "Special message goes here");
5return Redirect::back();
6
7#In View
8@if (Session::has('message'))
9   <div class="alert alert-info">{{ Session::get('message') }}</div>
10@endif