How to change the redirect page after login?

Vanguard - Advanced PHP Login and User Management Vanguard - Advanced PHP Login and User Management / FAQ Last updated on Updated  Feb 19, 2020

Modifying the redirect page after login is simple. Just check authenticated method available inside app/Http/Controllers/Web/Auth/LoginController and replace return redirect()->intended(); line with one of the following:

// to redirect to custom url (can be any url)
return redirect()->to("your url here");

//or

// to redirect to specific Vanguard route
// with name that is already defined for that route
return redirect()->route("route_name_here");