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

An odd human being who happens to have a variety of ever-changing interests, but right now they are programming, making up silly song/rap lyrics, K-pop, drawing, creating unique dessert/drink flavors, obsessing about finding out how some things works, automation, anime, video games... Ran online dessert shops Cookies PH and Catzie's Cakery in her past life.

Leave a Reply

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