-
Notifications
You must be signed in to change notification settings - Fork 920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete Item Problem #178
Comments
Hi @A-Ronagh , This is odd. I've just checked the package and the delete functionality works, it throws me a green success message. You should open your network tab in Developer Tools to debug the problem - see what the ajax response is for that delete call - it should say the actual error. If you've overwritten the Cheers! |
Have you used CRUD::resource() in your routes file? Can I see it? |
yes I Use CRUD::resource() Route::group(['prefix' => 'adminpanel', 'middleware' => 'admin'], function()
// CRUD::resource('app-config', 'Admin\AppConfigCrudController'); |
Does a composer update fix it? |
I check this tnx for answer :) |
I ran into this due to nesting my CRUD models, so I had to add the following functions (edit and destroy) because the $id was returning as null. Nested being: Course -> Course Chapters -> Course Chapter Pages This is from my Course Chapter Pages controller, where the general CRUD was not picking up the "last" ID in the chain of nested CRUDs. You will need to do a dd($this) in the edit and destroy to make sure you pull back the right ID to pass to the parent. I hope this helps someone with my issue.
|
Yea... deleting is a problem. I had to add a route before the MyCrudController route resouce: |
when delete button clicked in row show this message:
There's been an error. Your item might not have been deleted.
how can i fix this ?
The text was updated successfully, but these errors were encountered: