public function render($view, array $data = [])
    {
        // First we need to parse the view, which could either be a string or an array
        // containing both an HTML and plain text versions of the view which should
        // be used when sending an e-mail. We will extract both of them out here.
        [$view, $plain, $raw] = $this->parseView($view);

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

        return $this->renderView($view ?: $plain, $data);
    }
public function render($view, array $data = [])
    {
        // First we need to parse the view, which could either be a string or an array
        // containing both an HTML and plain text versions of the view which should
        // be used when sending an e-mail. We will extract both of them out here.
        [$view, $plain, $raw] = $this->parseView($view);

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

        return $this->renderView($view ?: $plain, $data);
    }
public function render ( $ view , array $ data = [ ] ) { // First we need to parse the view, which could either be a string or an array // containing both an HTML and plain text versions of the view which should // be used when sending an e-mail. We will extract both of them out here. [ $ view , $ plain , $ raw ] = $ this -> parseView ( $ view ) ; $ data [ 'message' ] = $ this -> createMessage ( ) ; return $ this -> renderView ( $ view ? : $ plain , $ data ) ; }
Render the given message as a view.

@param  string|array  $view
@param  array  $data
@return string
Render the given message as a view .