protected function getDocView($viewPath) { $viewPath = str_replace('devise::', '', $viewPath); $viewPath = "devise::docs.{$viewPath}"; try { return $this->View->make($viewPath); } catch (\Exception $e) { } return null; }