diff --git a/packages/panels/docs/09-configuration.md b/packages/panels/docs/09-configuration.md index 87bac96a98..88829a453e 100644 --- a/packages/panels/docs/09-configuration.md +++ b/packages/panels/docs/09-configuration.md @@ -209,3 +209,30 @@ public function panel(Panel $panel): Panel ], isPersistent: true); } ``` + +## Changing the default slugs + +Filament uses sensible English slugs by default when registering its routes. These can be changed by setting them in their respective config methods. + +```php +use Filament\Panel; + +public function panel(Panel $panel): Panel +{ + return $panel + // ... + ->tenantBillingProvider(slug: 'abrechnung') + ->login(slug: 'einloggen') + ->passwordReset( + requestSlug: 'anfragen', + resetSlug: 'zuruecksetzen', + prefix: 'passwort-ruecksetzung' + ) + ->registration(slug: 'registrieren') + ->emailVerification( + promptSlug: 'auffordern', + verifySlug: 'verifizieren', + prefix: 'email-verifizierung' + ); +} +```