Laravel 5: How to change Auth URL from “/auth/login” to just “login”:

Written by

in

, , ,

Just sharing a link telling us how to remove the “auth” in the URL for Laravel’s pre-made login system.

You need to modify App\Http\Middleware\Authenticate::handle() method and change auth/login to /login.

Then you need to add $loginPath property to your \App\Http\Controllers\Auth\AuthController class.

Source: How to change default redirect URL of Laravel 5 Auth filter?

Related Posts

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *