erdiegoant
erdiegoant
FFilament
Created by erdiegoant on 8/27/2023 in #❓┊help
Create tenant page breaks if we have a custom profile page
And this is my panel config
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())
...
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())
...
18 replies
FFilament
Created by erdiegoant on 8/27/2023 in #❓┊help
Create tenant page breaks if we have a custom profile page
This is a custom profile page as I wanted it to have the same layout of the other pages
18 replies
FFilament
Created by erdiegoant on 8/27/2023 in #❓┊help
Create tenant page breaks if we have a custom profile page
@benny.dev this is my edit profile page (user profile, not tenant profile)
use Filament\Forms\Form;
use Filament\Forms\Components;
use Filament\Pages\Page;

class EditProfile extends Page
{
protected static string $view = "http.web.domain.dashboard.pages.edit-profile";

protected static bool $shouldRegisterNavigation = false;
...
}
use Filament\Forms\Form;
use Filament\Forms\Components;
use Filament\Pages\Page;

class EditProfile extends Page
{
protected static string $view = "http.web.domain.dashboard.pages.edit-profile";

protected static bool $shouldRegisterNavigation = false;
...
}
And if I'm logged in and working normally it works, but if I try to go into the create tenant page it breaks
18 replies
FFilament
Created by erdiegoant on 8/27/2023 in #❓┊help
Create tenant page breaks if we have a custom profile page
The one that has trouble is the custom profile page
18 replies
FFilament
Created by erdiegoant on 8/27/2023 in #❓┊help
Create tenant page breaks if we have a custom profile page
Sorry, this isn't the page
18 replies
FFilament
Created by erdiegoant on 8/27/2023 in #❓┊help
Create tenant page breaks if we have a custom profile page
@benny.dev Sure!
use Filament\Forms\Components;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\EditTenantProfile;

class EditTeamProfile extends EditTenantProfile
{
protected static ?string $slug = 'settings';

public static function getLabel(): string
{
return 'Team Settings';
}
...
use Filament\Forms\Components;
use Filament\Forms\Form;
use Filament\Pages\Tenancy\EditTenantProfile;

class EditTeamProfile extends EditTenantProfile
{
protected static ?string $slug = 'settings';

public static function getLabel(): string
{
return 'Team Settings';
}
...
18 replies
FFilament
Created by erdiegoant on 8/27/2023 in #❓┊help
Create tenant page breaks if we have a custom profile page
@eketcha I wasn't able to solve it yet, decided to look at it later and removed create tenant page for now
18 replies