© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
DivDax

EditAction inside Action

Hey!

I try to open an edit action from an action:

return Action::make('showAction')
  ->slideOver()
  ->modalWidth('w-11/12 md:w-3/4')
  ->modalContent(fn (Action $action) => view(
      'livewire.appointment-show-action',
      [
          'action' => $action,
          'appointment' => $appointment,
      ]
  ))
  ->registerModalActions([
      EditAction::make('editClient')
          ->record($appointment->client)
          ->form([ClientForm::make()])
          ->slideOver(),
  ])
return Action::make('showAction')
  ->slideOver()
  ->modalWidth('w-11/12 md:w-3/4')
  ->modalContent(fn (Action $action) => view(
      'livewire.appointment-show-action',
      [
          'action' => $action,
          'appointment' => $appointment,
      ]
  ))
  ->registerModalActions([
      EditAction::make('editClient')
          ->record($appointment->client)
          ->form([ClientForm::make()])
          ->slideOver(),
  ])


When i click the edit button inside my slideover i get this error:
Error:
Filament\Actions\EditAction::Filament\Actions\{closure}(): Argument #2 ($record) must be of type Illuminate\Database\Eloquent\Model, null given, called in /var/www/app/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35
Filament\Actions\EditAction::Filament\Actions\{closure}(): Argument #2 ($record) must be of type Illuminate\Database\Eloquent\Model, null given, called in /var/www/app/vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 35


any ideas?
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

Action inside Another Action
FilamentFFilament / ❓┊help
2y ago
EditAction hooks
FilamentFFilament / ❓┊help
3y ago
Different configuration for Actions inside ActionGroup possible?
FilamentFFilament / ❓┊help
12mo ago
Tooltip lost when putting actions inside ActionGroup
FilamentFFilament / ❓┊help
3y ago