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. http://stackoverflow.com/a/23626070
otherwise, delete the comment records first, then you can delete the product records
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community