© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Troner

Custom Page with URL parameters

3️⃣v3✅ SolvedPanels
I made a custom page with artisan make:filament-page but how to allow parameters like in web/routes.php where you can have somehing like this /example/{$id}. Also my page is not linked to any resource. I tried to add protected static ?string $slug = '/example/{$id}'; to my page class but then I get 404 error.
Solution
//routes/web.php
Route::get('/admin/example/{id}', ExamplePage::class);

//ExamplePage
public function mount(int $id): void
{
    //...
}
//routes/web.php
Route::get('/admin/example/{id}', ExamplePage::class);

//ExamplePage
public function mount(int $id): void
{
    //...
}
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Custom page url
FilamentFFilament / ❓┊help
3y ago
Custom route with path parameters for custom page
FilamentFFilament / ❓┊help
3y ago
Persist url parameters on page update
FilamentFFilament / ❓┊help
15mo ago
How do I receive URL parameters in a custom page?
FilamentFFilament / ❓┊help
5mo ago