Can't access current Item in Repeater when delete action is called.
Instead i'm getting all the items with thier UUIDs
is there a way to somehow inject at-least uuid of the deletable item in
deleteAction()
so i can also delete from DB.
thanks in advance.Solution:Jump to solution
@toeknee thank you:
but i end up doing my own way here :
```php
$updatedScreenIds = collect($screens)->map(fn(array $screen) => $screen['id'])->values();...
2 Replies
That is a strange request, but what you can do is write a cleanup function in a model observer, on update, check what has changed and remove whatever you usually insert from the dirty check. Does that make sense?
Solution
@toeknee thank you:
but i end up doing my own way here :
just checking the again for records that are not present in updatedList but in the database then deleting them.
until we have any official way of doing it.