I'm getting Integrity constraint violation: 1451 Cannot delete or u error when trying to delete data

No description
4 Replies
This PC
This PC5mo ago
Here is my entire source code
David | Fortune Validator
You have a foreign key setup. You are deleting an ingredient which exists in a recipe. You need to change the foreign key setup to tell it what to do in this event. Check laravel docs
This PC
This PC5mo ago
yes I fixed the error right after posting that question, thank you very much