How to use Cascade Soft Delete Trait in laravel 8?

Published

$inst = Institution::find($institution->id);
$campus = InstitutionCampusId::where(‘institution_campus_id.institution_id’ , $institution->id);
$inst->delete();
$campus->delete();

Source: Laravel

Published
Categorised as laravel, laravel-8, php-7 Tagged , ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq