amk
6 months ago
268
4
Laravel

How to know if fail job?

Posted 6 months ago by amk

I want to know exactly who's email failed? Pls,advice me?

   public function handle()
    {
      $users = Users::all();

      foreach ($users as $user) {
        $email = new SendUserMail();
        \Mail::to($user->email)->send($email);
      }

    }

Please sign in or create an account to participate in this conversation.