#How to change logout route

10 messages · Page 1 of 1 (latest)

shut thistle
#

Basically I want to change the redirect page from welcome to login, after user click logout button.
I tried to find how to change it but to no avail, anyone know how?

neat star
#

i think add

return redirect()->route('login');

in controller where u put function logout

shut thistle
#

i cannot find where they put route('logout')definition

#

The destroy function for logout is inside the AUthenticatedSessionController in vendor folder

shut thistle
#

can you elaborate more?
do you know the command to pubish the controller?

neat star
#

why dont u put your function destroy here

short spire
shut thistle
#

do you know how to publish the file?

shut thistle
#

in config.fortify.php add