Merge pull request #8918 from valpuia/fix/10-tenancy

Update 10-tenancy.md
This commit is contained in:
Zep Fietje
2023-10-06 09:29:31 +02:00
committed by GitHub
+20 -1
View File
@@ -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'),
// ...
]);
@@ -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 profile'),
// ...
]);
}
```
### Customizing the billing link
To customize the billing link on the tenant menu, register a new item with the `billing` array key: