public function send(SenderManagerContract $sender)
    {
        $success = true;
        foreach ($this->notifications as $notification) {
            $query = $this->getQuery($notification);
            if (! $query->exists()) {
                $success = $sender->send([$notification]) ? $success : false;
                continue;
            }
            $success = $query->firstOrFail()->resend() ? $success : false;
        }

        return $success;
    }
public function send(SenderManagerContract $sender)
    {
        $success = true;
        foreach ($this->notifications as $notification) {
            $query = $this->getQuery($notification);
            if (! $query->exists()) {
                $success = $sender->send([$notification]) ? $success : false;
                continue;
            }
            $success = $query->firstOrFail()->resend() ? $success : false;
        }

        return $success;
    }
public function send ( SenderManagerContract $ sender ) { $ success = true ; foreach ( $ this -> notifications as $ notification ) { $ query = $ this -> getQuery ( $ notification ) ; if ( ! $ query -> exists ( ) ) { $ success = $ sender -> send ( [ $ notification ] ) ? $ success : false ; continue ; } $ success = $ query -> firstOrFail ( ) -> resend ( ) ? $ success : false ; } return $ success ; }
Send the notification once.

@param SenderManagerContract $sender
@return bool
Send the notification once .