laravel-revisionable icon indicating copy to clipboard operation
laravel-revisionable copied to clipboard

Bug: Delete function is not observed and no revision is saved on ->delete

Open nekromoff opened this issue 7 years ago • 2 comments

No revision is created when using delete:

Item::where('user_id', $user->id)->delete();

Destroy works properly and revision is created:

$item=Item::where('user_id', $user->id)->first();
Item::destroy($item->id);

nekromoff avatar Jan 03 '18 20:01 nekromoff

Hey man, thanks for your feedback on this one.

You have the chance to submit a PR to add this feature? Thanks in advance and cheers

johannesschobel avatar Jan 04 '18 10:01 johannesschobel

I'll check it, but in the meantime I have resolved this using workaround that directly uses Revision model (table).

nekromoff avatar Jan 04 '18 10:01 nekromoff