Too Long; Didn't Read
A while ago I wrote an article called <a href="https://hackernoon.com/simple-multi-tenancy-with-laravel-b3f84fc13c39" target="_blank">Simple Multi Tenant with Laravel</a>. I received a lot of good feedback from it. But that article was about an internal admin panel tool which the user would choose which tenant they wanted to manipulate. Recently I started working on a new project where the authenticated user belongs to a specific tenant and should be allowed to extract data only from his own database. This article is the approach I took to achieve that.