© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
12 replies
frame

Query string null in a relationmanager

I can read
request()->query('group')
request()->query('group')
in
ViewUser::getTitle
ViewUser::getTitle
just fine but in UserResource's ResultsRelationManager it returns null.

Is there a way to read URL query strings in a relationmanager, or some other way to pass data from Resource to Relationmanager? I need to alter both UserResource infolist and the ResultsRelationManager table under it based on this query string. 🤔
Solution
in your relation manager if you would add property $group and set it as Url livewire attribute. does it work then?
use Livewire\Attributes\Url;

#[Url]
public int|null $group = null;
use Livewire\Attributes\Url;

#[Url]
public int|null $group = null;


and call it where needed like
$this->group
$this->group
then
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

getMountedTableActionRecord() returns null in RelationManager (EditAction)
FilamentFFilament / ❓┊help
7mo ago
RelationManager getTableQuery() returns null
FilamentFFilament / ❓┊help
3y ago
Query string in pagination
FilamentFFilament / ❓┊help
2y ago
`null` query params
FilamentFFilament / ❓┊help
3y ago