protected function setSubject(Message $message){

        if(!isset($this->data['subject'])){
            throw new OutOfBoundsException("You have to pass a subject key and value in your view data");
        }

        $message->subject($this->data['subject']);

    }
protected function setSubject(Message $message){

        if(!isset($this->data['subject'])){
            throw new OutOfBoundsException("You have to pass a subject key and value in your view data");
        }

        $message->subject($this->data['subject']);

    }
protected function setSubject ( Message $ message ) { if ( ! isset ( $ this -> data [ 'subject' ] ) ) { throw new OutOfBoundsException ( "You have to pass a subject key and value in your view data" ) ; } $ message -> subject ( $ this -> data [ 'subject' ] ) ; }
Sets tzhe subject of the message

@param \Illuminate\Mail\Message $message
@return void
Sets tzhe subject of the message