Q:

Laravel 5.8 on demand notification error Call to a member function create() on null

When I do this, the user receives email without error:
Notification::send($user, new TicketNotification($details));

But, when I do this, the user also receives an email, but with an error in the screenshot below
Notification::route('mail', 'email_of_non-db_user')->notify(new TicketNotification($details));

Error: Call to a member function create() on null
Do have any idea why? How can I avoid this error? 
I have to use On Demand Notification because I need to send a notification to someone who is not stored as a "user".

A:

i think try this one
in TicketNotification update via method with this for only send to mail.
But u r also saved notification into database..
/**
 * Get the notification's delivery channels.
 *
 * @param  mixed  $notifiable
 * @return array
 */
public function via($notifiable)
{
    return ['mail'];
}

