Has anyone implemented Filamentv3 with tenancyfolaravel https://tenancyforlaravel.com/
I am trying to integrate the above package but I would want to know if someone has done it before
11 Replies
I have started this work yesterday, I've reached some initial issues but my app is running through tenancy multidatabase in all my panels
later on I'll share my config here
Could u please share your config
I'm creating a sample project and commiting to github and later I'll share the project here
Thanks. Wating for it as well ππ»
One thing to be aware of is that depending on your use case you may not need to make Filament aware of the multi-tenant nature of your app at all.
If you're using subdomains for tenancy identification you likely don't need to use the Filament tenancy options at all and it will keep things much simpler.
Well, right now my multidatabase multinenancy is done by this method in Kernel.php
public function bootstrap()
{
$host = request()->getHost();
$subdomain = explode('.', $host)[0];
$envFile = '.env.' . $subdomain;
$envPath = base_path();
$envFilePath = $envPath . '/' . $envFile;
if (!file_exists($envFilePath)) {
abort(404, 'chyba');
}
app()->loadEnvironmentFrom($envFile);
parent::bootstrap();
}
But I would like to try the package.Waiting here as well!
waiting here as well too
I have a project running with Tenancy for Laravel
it would be cool if you can help us to understand how that thing works π
Itβs hard to help if everyone has different issues and I have no idea how far everyone got and what the issues are. I answered one related thread yesterday.