protected function viewPathForType($viewType) { $docs = 'docs/'; if ($viewType == 'docs') { $docs = ''; } return base_path() . '/resources' . '/views/' . $viewType . '/' . $docs . $this->prefix . '/'; }