hello i m using laravel boot method (delete) for create logs. here is my code:-
EmployeeController.php
$delete = Employee::where('_id', $id)->delete();
Employee.php
self::deleted(function ($model) {
$log['url'] = env('APP_URL') . 'edit-employee/' . $model['_id'];
$log['status'] = 'remove';
ActivityLog::add($log);
});
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire