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

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:

Posts that may be related to "Laravel 5: How to change Auth URL from “/auth/login” to just “login”:":

Catzie

A Filipino programmer with a variety of interests such as baking, singing, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert flavors, obsessing about finding out how some things works, board games, anime, video games, and forgetting things that usually go in her long list of interests. Running small-time online dessert shops Cookies PH and Catzie's Cakery.

Leave a Reply

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