I have a Laravel Nova backend in which I want users to be able to drop large sets of records by filter selection. Those records have some relationships with other models as well and those need to be cleaned. For example, an admin may want to drop all users that don't have any roles and detach them from the groups they are in and remove all the posts they made. This could be some 25000 users.
It appears to me that because of the filter selection, Nova is processing this request line by line which eventually leads to a timeout on the server. I want to send a query to the database to remove all users who's id is in the filter selection. MySQL will handle the removing of the relationships by cascading. This is far quicker than the row by row processing of Nova.
But I cannot figure out how to override the handling of the delete request by Nova. The closest I've managed to get is tapping into the deleting event of the model but by then Nova is already handling the request line by line. How do I hook up my own controller for this request?