Removing the page counter as it doesn't serve any purpose besides costing a query

parent 16b887e4
...@@ -38,10 +38,6 @@ class SidebarExtender implements \Maatwebsite\Sidebar\SidebarExtender ...@@ -38,10 +38,6 @@ class SidebarExtender implements \Maatwebsite\Sidebar\SidebarExtender
$item->icon('fa fa-file'); $item->icon('fa fa-file');
$item->weight(1); $item->weight(1);
$item->route('admin.page.page.index'); $item->route('admin.page.page.index');
$item->badge(function (Badge $badge, PageRepository $page) {
$badge->setClass('bg-green');
$badge->setValue($page->countAll());
});
$item->authorize( $item->authorize(
$this->auth->hasAccess('page.pages.index') $this->auth->hasAccess('page.pages.index')
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment