archtechx / tenancy

Automatic multi-tenancy for Laravel. No code changes needed.
https://tenancyforlaravel.com
MIT License
3.62k stars 427 forks source link

duplicate routes with Laravel 10 using breeze and sub domain not posting register to correct db #1130

Closed MattWiseParking closed 1 year ago

MattWiseParking commented 1 year ago

Bug description

I am getting duplicate route names when using Auth breeze package. all the routes from the sub domain seems to be posting to the landlord database and not the new tenant db which was created when creating a new tenant.

Steps to reproduce

Expected behavior

I would expect when navigating to /register or /login url from any of the sub domains, any of the post/get should default to the new tenant database and not the landlord database

Laravel version

10.14.1

stancl/tenancy version

3.7

MattWiseParking commented 1 year ago

i would also expect not to see duplicate routes with duplicate route names. for example, password.update is referenced twice for tenant.test/password and /password - same for all the auth routes. /register and tenant.test/register

stancl commented 1 year ago

Hey!

Thanks for opening the issue. This doesn't seem to be a bug in the package, it seems to be related to your setup.

If you need quick support, you can visit our Discord community here: https://archte.ch/discord

Thanks