F
Filamentβ€’4mo ago
trippleseek

ForceDeleteAction::make() observer?

Hi there i want to loop through items that are gonna be force deleted. is there a good method to use? i made an observer but i read it doesnt use that but i do not know a good way to implement it.
7 Replies
Sjoerd24
Sjoerd24β€’4mo ago
Observer is the perfect solution for your problem. Should work out of the box with filament.
trippleseek
trippleseekβ€’4mo ago
it sadly doesn't trigger
No description
trippleseek
trippleseekβ€’4mo ago
i also tried dd(); on the begin lines but it doesn't do anything and the observer is registered because the created event gets called nederlands toevallig? haha
trippleseek
trippleseekβ€’4mo ago
the wiki says this
No description
Sjoerd24
Sjoerd24β€’4mo ago
So you registered the observer correctly? It does get called with the created/updated event? Do you have softDeletes active for your resource? En geheel verrassend Nederlands inderdaad πŸ˜‰
trippleseek
trippleseekβ€’4mo ago
yes it calls the observer created event
No description
No description
No description
trippleseek
trippleseekβ€’4mo ago
i found it! the event is forceDeleting i used the after call forceDelete makes sense whaha