DanTheDJ / multitenant

The minimalist Laravel MultiTenant package enables easy multi-tenant applications by dynamically setting the database connection + name and adding a globally available --tenant option to Artisan. Enjoy!
MIT License
14 stars 4 forks source link

Password reset link #12

Closed nettsite closed 6 years ago

nettsite commented 6 years ago

Does anyone have any guidance for me on how to correct the password reset link in the email sent to users when they forget their password?

The link is to http://example.com instead of http://tenant.example.com.

DanTheDJ commented 6 years ago

Hi @NettSite, apoligies for the delay in getting back to you.

I managed to override the default behavior, this should work for you. I need to sit down when I have some time to have a look at this library as there are a few missing use cases which I would like to work as standard.

https://gist.github.com/DanTheDJ/e2d129e546af1bf53799349ecc2d8c41

DanTheDJ commented 6 years ago

PS: You'll need to change the link inside the '->action()' call.

nettsite commented 6 years ago

Thanks. I had managed to figure it out, I should have closed the issue.