tzsk/sms

not worked by notification .only worked with QUEUE_CONNECTION=sync

Closed this issue · 1 comments

when i use this package with notifcation

public function toSms($notifiable)
{
    $pattern_code='d4l0f55kufu3qfj';
    $reference = $this->ticket->reference;
    $subUrl    = $notifiable->isManager() ?
    'dashboard/tickets/' : 'tickets/'
    ;
    $ticketUrl =  $subUrl . $reference;
    $text="pattern_code=$pattern_code\nreference=$reference\nlink=$ticketUrl";
    return  (new Builder())//->via('gateway')
        ->send($text)
        ->to($this->user->phone);
}

it not work when QUEUE_CONNECTION=database on enviroment

I had forgotten to run queue:work.