src/Navigation/Presenters/Bootstrap/SidebarMenuPresenter.php
protected function handleItemsCount($item)
    {
        if ($item->route
            && 'scaffold.index' === array_get($item->route, 0)
            && $module = array_get($item->route, '1.module')
        ) {
            $module = app('scaffold.module.'.$module);

            if ($count = $module->appendCount()) {
                $item->count = $count;
            }
        }

        return $item;
    }
protected function handleItemsCount($item)
    {
        if ($item->route
            && 'scaffold.index' === array_get($item->route, 0)
            && $module = array_get($item->route, '1.module')
        ) {
            $module = app('scaffold.module.'.$module);

            if ($count = $module->appendCount()) {
                $item->count = $count;
            }
        }

        return $item;
    }
protected function handleItemsCount ( $ item ) { if ( $ item -> route && 'scaffold.index' === array_get ( $ item -> route , 0 ) && $ module = array_get ( $ item -> route , '1.module' ) ) { $ module = app ( 'scaffold.module.' . $ module ) ; if ( $ count = $ module -> appendCount ( ) ) { $ item -> count = $ count ; } } return $ item ; }
Appends Items count to a title if needed.

@param $item
Appends Items count to a title if needed .