z-song / demo.laravel-admin.org

Source code of official http://demo.laravel-admin.org website.
507 stars 250 forks source link

How to use saving or saved method during click on delete button #27

Open enaeim opened 6 years ago

enaeim commented 6 years ago

Hi.

Description:

I use laravel-admin interface builder in my project. I delete rows without doing anything. I just click on the delete button, and then the row is automatically deleted from the database. It's excellent :) But I want to use the saving or saved method during deletion. I don't know how to do it :(

Also in a form I disabled reset button and enable delete button and I use form edit submit button, too. I add $form->enableDelete(); and $form->disableReset(); to my code. In this case, the deletion operation is done automatically, too. Now, how can I use saving or saved method?

Please help me. Thanks a lot.