1return Redirect::back()->withErrors(['msg', 'The Message']);
2
3and inside your view call this
4
5@if($errors->any())
6<h4>{{$errors->first()}}</h4>
7@endif
1Route::post('user/profile', function () {
2 // Update the user's profile...
3
4 return redirect('dashboard')->with('status', 'Profile updated!');
5});
1@if (\Session::has('success'))
2 <div class="alert alert-success">
3 <ul>
4 <li>{!! \Session::get('success') !!}</li>
5 </ul>
6 </div>
7@endif
8