mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
Added documentation for custom route slugs
This commit is contained in:
@@ -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'
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user