/** * Get the html title (check for crud reserve word) * @return string */ protected function getDescription() { // this just allows the controller to overide the description if (strlen($this->description) <= 5) { $this->description = $this->selectedNavigation['html_description']; } return parent::getDescription(); }
/** * Return / Render the view * * @param $view * @param array $data * @return $this */ protected function view($view, $data = []) { $this->setSelectedNavigation(); $navigation = $this->generateNavigation(); $breadcrumb = $this->getBreadCrumb(); $pagecrumb = $this->getPagecrumb(); return parent::view($view, $data)->with('navigation', $navigation)->with('breadcrumb', $breadcrumb)->with('pagecrumb', $pagecrumb)->with('resource', $this->resource)->with('selectedNavigation', $this->selectedNavigation); }