protected function registerBreadcrumbs($container, array $item = [])
    {
        $this->setBreadcrumbsContainer($container);

        breadcrumbs()->register('main', function(Builder $bc) use ($item) {
            if (empty($item)) {
                $item = $this->getBreadcrumbsHomeItem();
            }

            $bc->push($item['title'], $item['url'], $item['data'] ?? []);
        });
    }
protected function registerBreadcrumbs($container, array $item = [])
    {
        $this->setBreadcrumbsContainer($container);

        breadcrumbs()->register('main', function(Builder $bc) use ($item) {
            if (empty($item)) {
                $item = $this->getBreadcrumbsHomeItem();
            }

            $bc->push($item['title'], $item['url'], $item['data'] ?? []);
        });
    }
protected function registerBreadcrumbs ( $ container , array $ item = [ ] ) { $ this -> setBreadcrumbsContainer ( $ container ) ; breadcrumbs ( ) -> register ( 'main' , function ( Builder $ bc ) use ( $ item ) { if ( empty ( $ item ) ) { $ item = $ this -> getBreadcrumbsHomeItem ( ) ; } $ bc -> push ( $ item [ 'title' ] , $ item [ 'url' ] , $ item [ 'data' ] ?? [ ] ) ; } ) ; }
Register a breadcrumb.

@param  string  $container
@param  array   $item
Register a breadcrumb .