laravel-revisionable
laravel-revisionable copied to clipboard
Bug: Delete function is not observed and no revision is saved on ->delete
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);
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
I'll check it, but in the meantime I have resolved this using workaround that directly uses Revision model (table).