Skip to content

Instantly share code, notes, and snippets.

@neverything
Created August 7, 2024 13:58
Show Gist options
  • Save neverything/1cde7dd4afad4aa4ac1b7358c59027b0 to your computer and use it in GitHub Desktop.
Save neverything/1cde7dd4afad4aa4ac1b7358c59027b0 to your computer and use it in GitHub Desktop.
Filament Onboarding Manager Pro: Add Tenant Switcher to Onboarding Wizard
class AdminPanelProvider extends PanelProvider
{
public function boot(): void
{
FilamentView::registerRenderHook(
PanelsRenderHook::BODY_START,
fn (): string => Blade::render('<x-tenant-menu />'),
scopes: [Onboard::class]
);
}
}
@if (filament()->hasTenancy() && filament()->hasTenantMenu())
<div
class="fi-sidebar-nav-tenant-menu-ctn w-xs border border-gray-200 rounded-lg absolute start-0 top-0 mt-2 ml-2 flex justify-between gap-x-4">
<x-filament-panels::tenant-menu/>
</div>
@endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment