© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
3 replies
TaufikRiontona

Need Help, how pass parameters to relation manager?

here my table action
->actions([
Tables\Actions\ViewAction::make()->url(fn($record) => RkupResource::getUrl('view', ['record' => $record->id, 'periode' => Carbon::parse(request()->get('tableFilters')['periode']['date'] ?? now())->endOfMonth()->format('Y-m-d')])),
Tables\Actions\EditAction::make()->url(fn($record) => RkupResource::getUrl('edit', ['record' => $record->id, 'periode' => Carbon::parse(request()->get('tableFilters')['periode']['date'] ?? now())->endOfMonth()->format('Y-m-d')])),
])


here my custom pages
public static function getRelations(): array
{
return [
RelationManagers\ProjectsRelationManager::class
];
}

public static function getPages(): array
{
return [
'index' => Pages\ListRkups::route('/'),
// 'create' => Pages\CreateRkup::route('/create'),
'view' => Pages\ViewRkup::route('/{record}/{periode?}'),
'edit' => Pages\EditRkup::route('/{record}/{periode?}/edit'),
];
}

I need periode on my relationManager.
Solution
Solve with this.
on resource
public static function getRelations(): array
{
return [
RelationManagers\ProjectsRelationManager::make([
'periode' => request()->route('periode') ?? now()->endOfMonth()->format('Y-m-d')
])
];
}

On RelationManager
public ?string $periode;

public function table(Table $table): Table
{
dd($this->periode);
}
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Relation Manager with Parameters
FilamentFFilament / ❓┊help
3y ago
how to pass parent record to relation manager bulkaction
FilamentFFilament / ❓┊help
6mo ago
I need to localize Relation Manager tab
FilamentFFilament / ❓┊help
17mo ago
Relation Manager
FilamentFFilament / ❓┊help
2y ago