Passing parameters to a custom page

Hello all,

could anyone please help me with passing parameters to a custom page (not associated with any resource)?
I am doing something wrong here?

Route::get('/trainer/attendee-sheet/{id}', \App\Filament\Trainer\Pages\AttendeeSheet::class)
->name('filament.trainer.pages.attendee-sheet');


This works when I accept the parameter in livewire style but the filament shows the Admin panel's menu when I send the parameter.
/trainer/attendee-sheet/12 -> This page shows the admin panel's navigation.
/trainer/attendee-sheet -> This page shows correct navigation.
Solution
worked using this,

public static function getSlug(): string
{
    return 'attendee-sheet/{id}';
}
Was this page helpful?