remove the single DeleteAction from specific records
remove the single DeleteAction from specific rows, for example, users with is_admin = 1 so admin users can't be deleted.
tried to use this
->before(function (DeleteAction $action) {
if (! $this->record->is_admin = 1) {
but get that error about ' $this '
i'm very new
tried to use this
->before(function (DeleteAction $action) {
if (! $this->record->is_admin = 1) {
but get that error about ' $this '
i'm very new