I have the following route:
Route::get('logout', '\App\Http\Controllers\Auth\LoginController@logout'); he redirects them through the function
public function __construct() { $this->middleware('guest')->except('logout'); } How can I redirect the route to another page? Tried to use regular query view.
Route::redirect('/logout', '/auth/login', 301); or even so
Route::get('logout', '\App\Http\Controllers\Auth\LoginController@logout', function(){ return view('auth.login'); }); but unfortunately something is not working.