From 9f76b59eb6bed81e71327483f005dbf9f0452e32 Mon Sep 17 00:00:00 2001 From: Lalhmangaihenga Date: Fri, 6 Oct 2023 12:45:13 +0700 Subject: [PATCH 1/3] remove extra comma --- packages/panels/docs/10-tenancy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/panels/docs/10-tenancy.md b/packages/panels/docs/10-tenancy.md index 68a8c441f3..c0cc3bf3b8 100644 --- a/packages/panels/docs/10-tenancy.md +++ b/packages/panels/docs/10-tenancy.md @@ -342,7 +342,7 @@ public function panel(Panel $panel): Panel ->tenantMenuItems([ MenuItem::make() ->label('Settings') - ->url(fn (): string => Settings::getUrl()), + ->url(fn (): string => Settings::getUrl()) ->icon('heroicon-m-cog-8-tooth'), // ... ]); From 2f2e05b7539d4353cc2c975fd2b1751b4969b6d6 Mon Sep 17 00:00:00 2001 From: Lalhmangaihenga Date: Fri, 6 Oct 2023 12:45:50 +0700 Subject: [PATCH 2/3] added customizing profile link --- packages/panels/docs/10-tenancy.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/panels/docs/10-tenancy.md b/packages/panels/docs/10-tenancy.md index c0cc3bf3b8..9c4d5547b4 100644 --- a/packages/panels/docs/10-tenancy.md +++ b/packages/panels/docs/10-tenancy.md @@ -368,6 +368,25 @@ public function panel(Panel $panel): Panel } ``` +### Customizing the profile link + +To customize the profile link on the tenant menu, register a new item with the `profile` array key: + +```php +use Filament\Navigation\MenuItem; +use Filament\Panel; + +public function panel(Panel $panel): Panel +{ + return $panel + // ... + ->tenantMenuItems([ + 'profile' => MenuItem::make()->label('Edit team'), + // ... + ]); +} +``` + ### Customizing the billing link To customize the billing link on the tenant menu, register a new item with the `billing` array key: From 9c8b711cb66719f7410a9b0075b814247070e2bf Mon Sep 17 00:00:00 2001 From: Lalhmangaihenga Date: Fri, 6 Oct 2023 12:47:30 +0700 Subject: [PATCH 3/3] change example text --- packages/panels/docs/10-tenancy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/panels/docs/10-tenancy.md b/packages/panels/docs/10-tenancy.md index 9c4d5547b4..6ff93499ae 100644 --- a/packages/panels/docs/10-tenancy.md +++ b/packages/panels/docs/10-tenancy.md @@ -381,7 +381,7 @@ public function panel(Panel $panel): Panel return $panel // ... ->tenantMenuItems([ - 'profile' => MenuItem::make()->label('Edit team'), + 'profile' => MenuItem::make()->label('Edit team profile'), // ... ]); }