public function newUserEmail($job, $data) { if ($job->attempts() > 3) { $job->delete(); } $user_id = $data['user_id']; $userDetail = User::find($user_id); $sendEmail = MessageHelper::sendEmailForNewUser($userDetail); $job->delete(); }