protected function viewExistsOrFail($view, $message = 'The view [:view] not found')
    {
        if ( ! $this->isViewExists($view)) {
            abort(500, str_replace(':view', $view, $message));
        }
    }
protected function viewExistsOrFail($view, $message = 'The view [:view] not found')
    {
        if ( ! $this->isViewExists($view)) {
            abort(500, str_replace(':view', $view, $message));
        }
    }
protected function viewExistsOrFail ( $ view , $ message = 'The view [:view] not found' ) { if ( ! $ this -> isViewExists ( $ view ) ) { abort ( 500 , str_replace ( ':view' , $ view , $ message ) ) ; } }
Check if view exists or fail.

@param  string  $view
@param  string  $message
Check if view exists or fail .