Added documentation for custom route slugs

This commit is contained in:
Boris Glumpler
2024-01-10 20:00:34 +05:45
parent 3ea74657b0
commit 0a67ffd711
+27
View File
@@ -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'
);
}
```