bozboz/menus
最新稳定版本:v1.3.2
Composer 安装命令:
composer require bozboz/menus
包简介
README 文档
README
Installation
composer require bozboz/menus- Add
Bozboz\Menus\Providers\MenuServiceProvider::class,to app.php php artisan vendor:publish && php artisan migrate
Usage
Click "Menus" in the "Content" menu in the admin and add a menu.
Add items to the menu selecting either an entity or manual text/url
In your view use the menu blade directive like so @menu(string $alias[, string $view = 'menus::menu']) where "alias" is the alias of the menu you just created.
By default menus will be rendered using the 'menus::menu' view which will output the menu as a simple nested, unordered list.
The menu query has a 1 hour cache so changes to entities can take a while to appear. Changes made directly to the menu will clear the cache though.
统计信息
- 总下载量: 3.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-05-27