Summer Sale! All accounts are 50% off this week.

Shawdow's avatar

remove the session message after click on browser back button

if i use the below method when the user clicks browser back button session message comes again

//controller 
return \Redirect::back()->with('error_msg', 'No Results Found');


//blade file
@if(session()->has('error_msg') )
      <div class="alert alert-danger">{{ session()->get('error_msg') }}</div>
@endif

0 likes
1 reply

Please or to participate in this conversation.