Laravel 5.2 closes the session, but when I press the return of the browser shows me the previous view in AutenticatesUsers is the following and it works but if I access and I pass through several modules and then I close the session and I return? Twice then the first one remains in the login and the second one shows me the previous module with username and everything .. only if the surcharge sends me to login. As it is because of the browser cache, but what could I do so that it does not return or enter the pages that way ??
public function logout(Request $request) {
Auth::guard($this->getGuard())->logout();
$request->session()->flush();
Auth::logout();
return redirect(\URL::previous());
return redirect(property_exists($this, 'redirectAfterLogout') ? $this->redirectAfterLogout : '/');