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 and baker. When I have time to spare, I blog, play video games, watch series (usually anime), cook dishes, draw, or spend a little time with pets. When I have the rare luxury of time, I get to travel and record song covers too! 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 *