FleetCart/app/Scaffold/Module/stubs/sidebar/sidebar-extender.stub
2023-06-11 13:14:03 +01:00

27 lines
749 B
Plaintext

<?php
namespace Modules\$MODULE_NAME$\Sidebar;
use Maatwebsite\Sidebar\Menu;
use Maatwebsite\Sidebar\Item;
use Maatwebsite\Sidebar\Group;
use Modules\Admin\Sidebar\BaseSidebarExtender;
class SidebarExtender extends BaseSidebarExtender
{
public function extend(Menu $menu)
{
$menu->group(trans('admin::sidebar.content'), function (Group $group) {
$group->item(trans('$LOWERCASE_MODULE_NAME$::$PLURAL_SNAKE_CASE_ENTITY_NAME$.$PLURAL_SNAKE_CASE_ENTITY_NAME$'), function (Item $item) {
$item->icon('fa fa-copy');
$item->weight(0);
$item->authorize(
/* append */
);
// append
});
});
}
}