erdiegoant
erdiegoant
FFilament
Created by erdiegoant on 8/27/2023 in #❓┊help
Create tenant page breaks if we have a custom profile page
I got the custom profile page working and everithing works except the create tenant page, here's an example of my AppPanelProvider:
public function panel(Panel $panel): Panel
{
return $panel
->id('app')
->path('app')
->topNavigation()

->login()
->registration()
->passwordReset()
->emailVerification()
->userMenuItems([
'profile' => MenuItem::make()
->label('Profile')
->icon('heroicon-o-user')
->url(static fn (): string => EditProfile::getUrl()),
])

->tenant(Team::class, slugAttribute: 'uuid')
->tenantRegistration(CreateTeam::class)
->tenantProfile(EditTeamProfile::class)
->tenantBillingProvider(new CashierStripeBillingProvider())
...
}
public function panel(Panel $panel): Panel
{
return $panel
->id('app')
->path('app')
->topNavigation()

->login()
->registration()
->passwordReset()
->emailVerification()
->userMenuItems([
'profile' => MenuItem::make()
->label('Profile')
->icon('heroicon-o-user')
->url(static fn (): string => EditProfile::getUrl()),
])

->tenant(Team::class, slugAttribute: 'uuid')
->tenantRegistration(CreateTeam::class)
->tenantProfile(EditTeamProfile::class)
->tenantBillingProvider(new CashierStripeBillingProvider())
...
}
Any idea what could be happening? The error I get is Missing required parameter for [Route: filament.app.pages.edit-profile] [URI: app/{tenant}/edit-profile] [Missing parameter: tenant]. We don't have a tenant in the tenant create page, but it's still required when you create the route for the Edit Profile.
18 replies