Testing with stancl/tenancy
I'm trying to test A resource page, and I'm getting the error in the screenshot, I'm using stancl/tenancy package and I have the tenancy initialization in the Base TestCase file, anyhelp?
14 Replies
clear your view cache?
@Dan Harrin I still got the same error
I suspect it has something to do with wrong db/permissions configuration with stancl/tenancy
Could it be the case?
i dont use that package so idk
Okay, thank you for the help a lot, really appreciate it π
Is there the file here? storage/xxx
what about the storage folder permission?
I actually fixed that from this link:
https://tenancyforlaravel.com/docs/v3/realtime-facades/
but now I'm facing another error as the screenshot says
Note: I'm using Laravel Sail locally
I tried prefixing
APP_URL
with http://
but no success toothe same method? test_list_domains() ?
I have a multi tenant project with laravel sail as well
https://github.com/leandrocfe/filament-multi-tenant
tests are working for me
GitHub
GitHub - leandrocfe/filament-multi-tenant: A Filament multi tenant ...
A Filament multi tenant starter kit. Contribute to leandrocfe/filament-multi-tenant development by creating an account on GitHub.
Yes
can you share the code on github?
you can try https://github.com/leandrocfe/filament-multi-tenant if you want
GitHub
GitHub - leandrocfe/filament-multi-tenant: A Filament multi tenant ...
A Filament multi tenant starter kit. Contribute to leandrocfe/filament-multi-tenant development by creating an account on GitHub.
Hmm, I'll check it out and compare my .env and config/app.php to see what could be causing this error?
Sure thing
I have it on gitlab
ok send me a DM π
It's a private repo if you can give me your email so I can add you there