Here is my code working to send notification email to multiple users
$users = User::whereIn('id', $userIds)->get();
\Notification::send($users, new DealPublished($deal));
It works but if I want to delay it like that
$users = User::whereIn('id', $userIds)->get();
$when = Carbon::now()->addSecond();
\Notification::send($users, new DealPublished($deal))->when($when);
Error is
FatalThrowableError in DealController.php line 226:
Call to a member function when() on null
How can I send notification email to multiple users using queue and Notification Facade ?
Thank's for help