© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
gremki

How to get page reference from resource

Hello!
I have a set of pages (list/create/edit) that have url attribute, something like
#[Url]
public ?string $parent_id = null;
#[Url]
public ?string $parent_id = null;


How can access this attribute from methods in corresponding resource? (In
form
form
or
table
table
methods)
I'm sorry if this is a dumb question, but I'm pretty new in Livewire and Filament ecosystem.
Solution
Thanks a lot! That pointed me in the right direction.
Also, there is even a simpler way, there is a
getLivewire()
getLivewire()
available on table and form components:
$table->getLivewire()->parent_id
$table->getLivewire()->parent_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

get resource page name
FilamentFFilament / ❓┊help
13mo ago
Get Resource Page Type
FilamentFFilament / ❓┊help
2y ago
How to access resource from resource?
FilamentFFilament / ❓┊help
3y ago
How to open a resource modal from another page
FilamentFFilament / ❓┊help
3y ago