Force deleting record error $record must not be accessed before initialization
When I delete a record the page shows an error before redirecting.
Typed property Filament\Resources\Pages\EditRecord::$record must not be accessed before initialization
5 Replies
That's just the stack trace, what's the error
Typed property Filament\Resources\Pages\EditRecord::$record must not be accessed before initialization
Can you provide your edit and resource pages.
Fixed it thanks - I had SoftDeletes but forgot to add:
I should have tried to reproduce this in a simple example before posting might be of help to somebody else.
Great