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

4 Replies
Here is my entire source code
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
yes I fixed the error right after posting that question, thank you very much