Support the ongoing development of Laravel.io →
posted 10 years ago
Eloquent
Last updated 1 year ago.
0

Hi, no they won't be deleted, i suggest using model event, in this case event on deleted. You can read more about events http://laravel.com/docs/eloquent#model-events

Last updated 1 year ago.
0

If it's just fine to delete the records from the database, perhaps you could add a foreign key. Thats what I do most of the times.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

chriship chriship Joined 7 Mar 2014

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.