27 lines
749 B
Plaintext
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
|
||
|
});
|
||
|
});
|
||
|
}
|
||
|
}
|