© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
Sanchit Patil

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');
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}';
}
public static function getSlug(): string
{
    return 'attendee-sheet/{id}';
}
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom Page with URL parameters
FilamentFFilament / ❓┊help
3y ago
Passing data to custom pages
FilamentFFilament / ❓┊help
10mo ago
Custom route with path parameters for custom page
FilamentFFilament / ❓┊help
3y ago
Passing ID to a custom header action in show page
FilamentFFilament / ❓┊help
12mo ago