Open konrad-ch opened 4 years ago
Hello, am having the same issue. Am using laravel 7 with Hyn 5.6
Hi, I haven't solved this problem but switched to https://github.com/stancl/tenancy , it's much better, try it :)
for anyone still struggling with this, this approach doesn't seem to work with either the latest release of laravel or passport, what worked for me was downgrading both to versions 5.8 and 7.3 respectively
Hi, maybe its wrong place to post my issue cause your demo project works fine for me. But I have a problem when trying to build my own project based on this demo.
When i try to register a new tenant, I receive the following error:
So it looks like it has a problem with switching to right database (the new, tenant one).
It populates hostnames, migrations and websites tables just fine.
Key files (important parts): RegisterController.php
Tenant.php
routes/api.php
AppServiceProvider.pjp
AuthServiceProvider.php
EnforceTenancy.php
Kernel.php
database.php
.env
Migration files are in the right directories (like in your demo).
I use Laravel 7 with Hyn 5.4
I would appreciate any help... :)