Hesto / multi-auth

Laravel 5.3, 5.4, 5.5, 5.6, 5.7 multi auth package
MIT License
448 stars 146 forks source link

Default Login redirect to newly created auth. #105

Open javeedrahman opened 6 years ago

javeedrahman commented 6 years ago

Hi, I am using default laravel login and your login, i can see the web.php route configured, When i try my host (example.com) it is redirect to example.com/developer/login automatically,

If i type manually example.com/login its pointing to laravel auth, but some auth has changed like login controller etc.

Please help, thanks in advance.

khaledapps commented 6 years ago

can you show your web.php file?

cymon1997 commented 6 years ago

I got the same problem, but it solved now.

This caused by the name conflict in routes/web.php

This tool will create generated route with the same name as Laravel did. The default auth is using "login", "logout", and "register" name for their routes.

So, just delete or change those name in your new routes. Then that problem will gone! :D

Update : If you still want to name your new routes, you can specify a prefix using "as" to your new routes like this Route::group(['prefix' => 'guard-name', 'as' => 'some-prefix-to-your-route-name.'], function () {