protected function renderView($view, $data)
    {
        try {
            return parent::renderView($view, $data);
        } catch (\InvalidArgumentException $e) {
            return static::applyDataToView($view, $data);
        }
    }
protected function renderView($view, $data)
    {
        try {
            return parent::renderView($view, $data);
        } catch (\InvalidArgumentException $e) {
            return static::applyDataToView($view, $data);
        }
    }
protected function renderView ( $ view , $ data ) { try { return parent :: renderView ( $ view , $ data ) ; } catch ( \ InvalidArgumentException $ e ) { return static :: applyDataToView ( $ view , $ data ) ; } }
Render the given view.

@param  string $view
@param  array  $data

@return mixed
Render the given view .