pluck('document_id'); Log::info("DocumentReminder:: Schedule Run $now , with $documentIds"); $documents = Document::whereIn('id', $documentIds)->get(); foreach ($documents as $doc) { Mail::to($doc->email)->send(new DocumentNotification($doc)); if ($doc->shares()->count() > 0) { foreach ($doc->shares as $share) { Mail::to($share->share_to)->send(new DocumentNotification($doc)); } } } } }