mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Merge pull request #8918 from valpuia/fix/10-tenancy
Update 10-tenancy.md
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user