© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
2 replies
SuperUserDo

Custom Page Table Method Edit Action passing Current Record

Hello,

Is it possible to pass current record within view on custom filament page under table method?

->actions([
                EditAction::make()
                    ->modalHeading('Edit Location')
                    ->modalSubmitActionLabel('Save Changes')
                    ->successNotificationTitle('Location updated successfully')
                    ->view('filament.pages.user-data.location-edit')
                ,
            ])
->actions([
                EditAction::make()
                    ->modalHeading('Edit Location')
                    ->modalSubmitActionLabel('Save Changes')
                    ->successNotificationTitle('Location updated successfully')
                    ->view('filament.pages.user-data.location-edit')
                ,
            ])


I have tried accessing $record within view
I get

Filament\Tables\Actions\EditAction::record(Illuminate\Database\Eloquent\Model|Closure|null $record): static {#4610 ▼ // resources\views/filament/pages/user-data/location-edit.blade.php
  returnType: "static"
  this: 
Filament\Tables\Actions
\
EditAction {#2858 …}
}
Filament\Tables\Actions\EditAction::record(Illuminate\Database\Eloquent\Model|Closure|null $record): static {#4610 ▼ // resources\views/filament/pages/user-data/location-edit.blade.php
  returnType: "static"
  this: 
Filament\Tables\Actions
\
EditAction {#2858 …}
}


Also closure funciton within view do not work... Any idea how to pass current record?
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

Current record in custom page ?
FilamentFFilament / ❓┊help
3y ago
Passing data to custom page through table action.
FilamentFFilament / ❓┊help
3y ago
Passing the current record to an Action
FilamentFFilament / ❓┊help
3y ago
Get current row record in custom action
FilamentFFilament / ❓┊help
2y ago