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

Delete Action not working!

Open xFaMLeSs opened this issue 1 year ago • 3 comments

  • Laravel Version: 8.54
  • PHP Version :8.0
  • Laravel-admin: 1.8

When I try to delete some record, this error occurs.

image

This appends if i try to delete some row via delete action on the side. Don't know what can be....

Can some one please help me?

xFaMLeSs avatar Jul 08 '22 16:07 xFaMLeSs

image I think its something in the what creates the request, because the _key element comes null, i think that is what is causing the problem.

I have little experience with JS and JQuery please help me!

xFaMLeSs avatar Jul 08 '22 22:07 xFaMLeSs

the primary key of the model used by that controller seems to be something other than 'id'. did you set the primary key on model?

k0hel avatar Jul 11 '22 02:07 k0hel

@xFaMLeSs can you share your Acticle model and migration file let's check how you define the primary key in each file. I think there's a miss match of your primary key

Ahercode avatar Jul 15 '22 02:07 Ahercode