Custom Page with URL parameters

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
{
    //...
}
Was this page helpful?