I am having offers and services table.
Service(s) is a child of an offer. So far I have established functionality for soft deletin
I have put this code in Offer model:
protected static function boot() { parent::boot(); static::deleting(function($offer) { $offer->services()->delete(); }); }
And added missing
use SoftDeletes; protected $dates = ['deleted_at'];
in the Service model.