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

        $this->pagecrumbItems = collect();

        // add nav item
        if ($this->selectedNavigation) {
            $this->addPagecrumbLink($this->selectedNavigation->title,
                $this->selectedNavigation->url, $this->selectedNavigation->icon);
        }

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

        $this->pagecrumbItems = collect();

        // add nav item
        if ($this->selectedNavigation) {
            $this->addPagecrumbLink($this->selectedNavigation->title,
                $this->selectedNavigation->url, $this->selectedNavigation->icon);
        }

        // reserved word (create, edit, show)
        if ($word = $this->checkIfReservedWordInUrl()) {
            $this->addPagecrumbLink(ucfirst($word));
        }
    }
public function setPagecrumb ( ) { $ url = config ( 'app.url' ) ; $ navItems = $ this -> urlParentNavs ; $ this -> pagecrumbItems = collect ( ) ; // add nav item if ( $ this -> selectedNavigation ) { $ this -> addPagecrumbLink ( $ this -> selectedNavigation -> title , $ this -> selectedNavigation -> url , $ this -> selectedNavigation -> icon ) ; } // reserved word (create, edit, show) if ( $ word = $ this -> checkIfReservedWordInUrl ( ) ) { $ this -> addPagecrumbLink ( ucfirst ( $ word ) ) ; } }
Set page crumbs
Set page crumbs