public function markAndNotifyCancelled() { $toCancel = OpportunityOccurrence::shouldBeCancelled()->get(); $toCancel->each(function ($occurrence) { $this->email->sendCancellationNotification($occurrence); $occurrence->status = 'cancelled'; $occurrence->save(); }); }