z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.13k stars 2.81k forks source link

Grid: Delete action shows success although $model->delete() returned false #5718

Open anxgstadler opened 1 year ago

anxgstadler commented 1 year ago

Description:

Although a model could not be deleted, and the delete() method therefore returned false, the result-popup from the grid's row's delete action shows a success message.

Steps To Reproduce:

Create a grid for a model, overwrite the model's delete() method, make it return false.