public function sendTo(Recipient $recipient, MessageInterface $message)
    {
        $driver = "\\Eyewitness\\Eye\\Notifications\\Drivers\\".ucfirst(strtolower($recipient->type));

        if (class_exists($driver)) {
            $channel = app($driver);
            $channel->fire($recipient, $message);
        } else {
            app(Eye::class)->logger()->debug('Notification Driver does not exist', $driver);
        }
    }
public function sendTo(Recipient $recipient, MessageInterface $message)
    {
        $driver = "\\Eyewitness\\Eye\\Notifications\\Drivers\\".ucfirst(strtolower($recipient->type));

        if (class_exists($driver)) {
            $channel = app($driver);
            $channel->fire($recipient, $message);
        } else {
            app(Eye::class)->logger()->debug('Notification Driver does not exist', $driver);
        }
    }
public function sendTo ( Recipient $ recipient , MessageInterface $ message ) { $ driver = "\\Eyewitness\\Eye\\Notifications\\Drivers\\" . ucfirst ( strtolower ( $ recipient -> type ) ) ; if ( class_exists ( $ driver ) ) { $ channel = app ( $ driver ) ; $ channel -> fire ( $ recipient , $ message ) ; } else { app ( Eye :: class ) -> logger ( ) -> debug ( 'Notification Driver does not exist' , $ driver ) ; } }
Send an alert notification with the given message to a specific recipient.

@param  \Eyewitness\Eye\Repo\Notifications\Recipient  $recipient
@param  \Eyewitness\Eye\Notifications\Messages\MessageInterface  $message
@return void
Send an alert notification with the given message to a specific recipient .