Soft Delete Restore Action button on pageview
Package
filament/filament
Package Version
v2
Laravel Version
v9
Livewire Version
v2
PHP Version
v8
Problem description
Filament\Pages\Actions\RestoreAction::Filament\Pages\Actions{closure}(): Argument #1 ($record) must be of type Illuminate\Database\Eloquent\Model, null given

Expected behavior
it should prompt a notification restored something.
Steps to reproduce
make sure your page has enabled the soft-delete.
- add the
Actions\RestoreAction::make()->icon('heroicon-o-trash')on your ViewPage. - Create record
- Delete the record
- restore the deleted record
Reproduction repository
https://github.com/whoami213/FilamentPHP-ViewPage-Error
Relevant log output
Filament\Pages\Actions\RestoreAction::Filament\Pages\Actions\{closure}(): Argument #1 ($record) must be of type Illuminate\Database\Eloquent\Model, null given, called in /home/unhex/self_project/eBMS-v3/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php on line 36
Hey @whoami213! We're sorry to hear that you've hit this issue. 💛
However, it looks like you forgot to fill in the reproduction repository URL. Can you edit your original post and then we'll look at your issue?
We need a public Git repository which contains a Laravel app with the minimal amount of Filament code to reproduce the problem. That would allow us to download it and review your bug much easier, so it can be fixed quicker. Please make sure to include a database seeder with everything we need to set the app up quickly.
Hi @danharrin can you check if this something a totally issues on my end only?
Yeah, we can have a look if you submit the reproduction repository URL, just edit your original message
I've update the repo link
Thank you for providing reproduction steps! Reopening the issue now.
I also experience this issue with the DeleteAction. It's quite serious, since it breaks the Delete buttons in entire applications.
@danharrin I can privately share a Flare stacktrace if you want.
Fixed by #3587.