addDays(2)) ->orderBy('trigger_date', 'asc')->get(); foreach ($notifications as $notification) { if (! $notification->contact) { $notification->delete(); continue; } ScheduleNotification::dispatch($notification); } } }