F
Filament3mo ago
Jpac14

Disable tenant slug

Hey everybody, I am trying to get stancl/tenancy and filament working together. I have all the images and all that working, but I am trying to use your tenancy pages (https://filamentphp.com/docs/3.x/panels/tenancy#overview), like signup and that. But I also want to use their billing features. the problem is I have this so far
return $panel
->default()
->id('tenant')
->path('')
->login()
->brandName(fn () => tenant('name'))
->brandLogo(fn () => tenant_asset(tenant('logo')))
->favicon(fn () => tenant_asset(tenant('favicon')))
->tenant(Tenant::class, slugAttribute: null)
return $panel
->default()
->id('tenant')
->path('')
->login()
->brandName(fn () => tenant('name'))
->brandLogo(fn () => tenant_asset(tenant('logo')))
->favicon(fn () => tenant_asset(tenant('favicon')))
->tenant(Tenant::class, slugAttribute: null)
But I want to turn off the added slug, because it I am using subdomain identification from stancl. And when once I login I get redirect to a page that doesn't exist. is this somehow possible to combine both worlds, use the billing and tenant signup pages + stancl? I can provided any other files if needed. Any help would be appreciated.
8 Replies
Jpac14
Jpac14OP3mo ago
No description
Jpac14
Jpac14OP3mo ago
^ This is what happens I just want to go to /
Wannes
Wannes3mo ago
You don't need Filament it's tenancy when you're using stancl/tenancy
Rolland
Rolland3mo ago
you could try redirect?
Jpac14
Jpac14OP3mo ago
But I want to take advantage of the tenant registration page and billing? Can I do this? Any ideas?
Mauricio
Mauricio3mo ago
How did you manage to make it work? I was trying but I always got an 404 page
Jpac14
Jpac14OP3mo ago
Nah I haven't done any work on this yet, might just implement it myself, which is kinda unfortunate. Do you have any ideas?
Mauricio
Mauricio3mo ago
it's working for me right now but not using the filament pages
Want results from more Discord servers?
Add your server