Eloquent itself doesn't have functionality for it, but your models do throw events. So what you can do is hook into the delete event on the invoice model and perform your action there
You can find this approach here in the documentation: https://laravel.com/docs/8.x/eloquent#events-using-closures
You can also do this in a dedicated class as you can find here: https://laravel.com/docs/8.x/eloquent#observers