© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Ehsan

Help with custom resource page

I have created a custom resource page and added its entry in
getPages()
getPages()
method like this:
'print' => Pages\PrintCouponBatch::route('/print/{record}')
'print' => Pages\PrintCouponBatch::route('/print/{record}')


I want the view for this page to use a custom layout. Also I am not able to access the
$record
$record
in the view.
{{ $record }}
{{ $record }}
shows variable undefined whileas the doc says, the route param should be available in view.

Any help with this will be appreciated.
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(non resource page)
FilamentFFilament / ❓┊help
2y ago
Custom page with resource record error
FilamentFFilament / ❓┊help
14mo ago
withoutGlobalScopes on Custom Page with Resource
FilamentFFilament / ❓┊help
3y ago
Custom Page with a Table Resource?
FilamentFFilament / ❓┊help
3y ago