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

Question #2

Closed simondotwhite closed 7 years ago

simondotwhite commented 7 years ago

Hey,

I've had a play around with and out of the box it resolves the tenant or throws an exception.

In my case I have it using middleware and a custom service provider to make sure the tenant for certain routes/groups.

Would you be interested in me creating a pull request to add this functionality?

DanTheDJ commented 7 years ago

Hi, I'm more than happy for you to do this, to be fair I haven't had time to work on this lately. Go ahead

DanTheDJ commented 7 years ago

@Sekonda regarding your recent PR, great job and thanks a lot. How does this play with PHPUnit testing?