In your App\Http\Controllers\Auth\LoginController you can override the logout method to prevent redirecting back, here you can send the user where ever you want
/**
* Log the user out of the application.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function logout(Request $request)
{
$this->guard()->logout();
$request->session()->invalidate();
return $this->loggedOut($request) ?: redirect('/login'); //redirect to login
}
up to logout it is working fine,but after logout it is coming to dashboard page,when we click back button in browser. Is this we restrict in view page?