title: Prevent Browser's Back Button Login After Logout in Laravel 5
body: <p>I am new to Laravel 5 and trying to make a simple authentication page. My problem is i can logout properly after i click to logout link but if i click to back button of the browser, still able to see the content of the page which actually should not be seen with respect to my auth middleware process. I read i can prevent this by disabling caching but don't think it is the best way to do this so how can i make this in a better way ? Simply my logout route is</p>
  
  <pre><code>Route::get('logout', array('uses' =&gt; 'LoginController@logout'));
  </code></pre>
  
  <p>Logout function is:</p>
  
  <pre><code>public function logout() {
          Auth::logout(); // logout user
          Session::flush();
          Redirect::back();
          return Redirect::to('pages/login'); //redirect back to login
  }
  </code></pre>