Closed kinzinho666 closed 2 years ago
I try save manually, its possible?
$dados = [ProcedureType::whereIn('id', request('ids'))]; foreach ($dados as $d) { $d->delete(); AuditLog::deleted($d); //like this... how to do? }
The package works by observing the model events. When performing mass-updates the eloquent models are not being touched and the package cant know what goes on. You need to do a collection each or a for loop to achieve this
Laravel 7
Actual Behaviour
Do not save log when a use DataTables MassDestroy, if i remove just only one, log save OK.
Model friends.php
Controller app\http\admin\FriendsController.php
Steps to Reproduce
composer require yajra/laravel-auditable
composer update
open my friends page
select 2 or more on checkbox and click em Mass Destroy (datatables)