Support the ongoing development of →
Requests Eloquent Queues
Last updated 1 year ago.

you're saying that a product has many comments which means you have a foreign key constraint. unless you have cascade delete in your database, you have to delete the comments record first, then delete the product record.

i found this post but it's for laravel 4. not sure it will work in 5.3.

otherwise, delete the comment records first, then you can delete the product records


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.