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
Observer is the perfect solution for your problem. Should work out of the box with filament.
it sadly doesn't trigger
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1233140793498402857/image.png)
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
the wiki says this
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1233141254406144081/image.png)
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 π
yes it calls the observer created event
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1233353617755475990/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1233353618313187328/image.png)
![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1233353618657382512/image.png)
i found it!
the event is forceDeleting i used the after call forceDelete
makes sense whaha