protected function setBreadcrumb()
    {
        $url = config('app.url');
        $navItems = $this->urlParentNavs;

        $this->breadcrumbItems = collect();

        // add nav items
        foreach ($navItems as $k => $page) {
            $this->addBreadcrumbLink($page->title, $page->url, $page->icon);
        }

        // reserved word (create, edit, show)
        if ($word = $this->checkIfReservedWordInUrl()) {
            $this->addBreadcrumbLink(ucfirst($word));
        }
    }
protected function setBreadcrumb()
    {
        $url = config('app.url');
        $navItems = $this->urlParentNavs;

        $this->breadcrumbItems = collect();

        // add nav items
        foreach ($navItems as $k => $page) {
            $this->addBreadcrumbLink($page->title, $page->url, $page->icon);
        }

        // reserved word (create, edit, show)
        if ($word = $this->checkIfReservedWordInUrl()) {
            $this->addBreadcrumbLink(ucfirst($word));
        }
    }
protected function setBreadcrumb ( ) { $ url = config ( 'app.url' ) ; $ navItems = $ this -> urlParentNavs ; $ this -> breadcrumbItems = collect ( ) ; // add nav items foreach ( $ navItems as $ k => $ page ) { $ this -> addBreadcrumbLink ( $ page -> title , $ page -> url , $ page -> icon ) ; } // reserved word (create, edit, show) if ( $ word = $ this -> checkIfReservedWordInUrl ( ) ) { $ this -> addBreadcrumbLink ( ucfirst ( $ word ) ) ; } }
Generate the breadcrumbs
@return string
Generate the breadcrumbs