public function afterDelete() { parent::afterDelete(); foreach ($this->getItems()->all() as $item) { $item->delete(); } }
public function afterDelete() { parent::afterDelete(); foreach ($this->getPhotos()->all() as $photo) { $photo->delete(); } }