src/Widgets/NotificationSender/Controller/NotificationController.php
protected function fire(Model $model) : array
    {
        $recipient = $this->getRecipient();

        if ($recipient->phone === null) {
            $recipient->phone = config('antares/notifications::default.sms');
        }

        $params = ['variables' => ['user' => $recipient], 'recipients' => [$recipient]];

        return event($model->event, $params);
    }
protected function fire(Model $model) : array
    {
        $recipient = $this->getRecipient();

        if ($recipient->phone === null) {
            $recipient->phone = config('antares/notifications::default.sms');
        }

        $params = ['variables' => ['user' => $recipient], 'recipients' => [$recipient]];

        return event($model->event, $params);
    }
protected function fire ( Model $ model ) : array { $ recipient = $ this -> getRecipient ( ) ; if ( $ recipient -> phone === null ) { $ recipient -> phone = config ( 'antares/notifications::default.sms' ) ; } $ params = [ 'variables' => [ 'user' => $ recipient ] , 'recipients' => [ $ recipient ] ] ; return event ( $ model -> event , $ params ) ; }
Fires notification events

@param Model $model
@return array
Fires notification events