i'm using session for display messages in laravel. my controller code is:
return redirect()->route('abc')->with('success','data save successfully');
and for show messages i'm using following code:
@if ($message = Session::get('success'))
<div class="alert alert-success alert-block">
<button type="button" class="close" data-dismiss="alert">×</button>
<strong>{{ $message }}</strong>
</div>
@end if
after i'm redirect to another route and back again then previous page so message display again.
if i'm using session::forget('success')
so session message not display.