Support the ongoing development of Laravel.io →
Requests Database Eloquent
Last updated 2 years ago.
0

If you already have foreign keys properly set for each table, you can add ->onDelete('cascade') (see docs on Schema Builder) to your foreign keys in migration files.

Last updated 9 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

edogaafx edogaafx Joined 16 Mar 2015

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.