Support the ongoing development of Laravel.io →
Database Eloquent

I have defined a Model class named Support, which abstracts the "supports" table of my DB. I want to call a method of a support instance when its table entry is deleted due to a foreign key constraint. Is there any member function or event or anything like that I can use? Or do I have to change my database to account for this?

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

nmayer1994 nmayer1994 Joined 26 Jun 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.

© 2025 Laravel.io - All rights reserved.