public function alert(MessageInterface $message)
    {
        (new Database)->fire(new Recipient, $message);

        if (Cache::has('eyewitness_debounce_'.$message->safeType().'_'.strtolower(class_basename($message)))) {
            return;
        }

        foreach (Recipient::where($message->severity(), true)->get() as $recipient) {
            $this->sendTo($recipient, $message);
        }

        Cache::add('eyewitness_debounce_'.$message->safeType().'_'.strtolower(class_basename($message)), 1, 1);
    }
public function alert(MessageInterface $message)
    {
        (new Database)->fire(new Recipient, $message);

        if (Cache::has('eyewitness_debounce_'.$message->safeType().'_'.strtolower(class_basename($message)))) {
            return;
        }

        foreach (Recipient::where($message->severity(), true)->get() as $recipient) {
            $this->sendTo($recipient, $message);
        }

        Cache::add('eyewitness_debounce_'.$message->safeType().'_'.strtolower(class_basename($message)), 1, 1);
    }
public function alert ( MessageInterface $ message ) { ( new Database ) -> fire ( new Recipient , $ message ) ; if ( Cache :: has ( 'eyewitness_debounce_' . $ message -> safeType ( ) . '_' . strtolower ( class_basename ( $ message ) ) ) ) { return ; } foreach ( Recipient :: where ( $ message -> severity ( ) , true ) -> get ( ) as $ recipient ) { $ this -> sendTo ( $ recipient , $ message ) ; } Cache :: add ( 'eyewitness_debounce_' . $ message -> safeType ( ) . '_' . strtolower ( class_basename ( $ message ) ) , 1 , 1 ) ; }
Send the notification with the given message.

@param  \Eyewitness\Eye\Notifications\Messages\MessageInterface  $message
@return void
Send the notification with the given message .