rapidez/snowdog-menu
最新稳定版本:2.0.0
Composer 安装命令:
composer require rapidez/snowdog-menu
包简介
Rapidez Snowdog Menu
关键字:
README 文档
README
A Blade component will be registered which can be used:
<x-snowdog-menu identifier="main"/>
Installation
If you didn't remove the default menu package yet:
composer remove rapidez/menu
Install this package:
composer require rapidez/snowdog-menu
And replace <x-menu/> with <x-snowdog-menu identifier="main"/> in the header Blade file (and replace the identifier):
resources/views/vendor/rapidez/layouts/partials/header.blade.php
If you haven't published the Rapidez views yet:
php artisan vendor:publish --provider="Rapidez\Core\RapidezServiceProvider" --tag=views
Views
You can publish the views with:
php artisan vendor:publish --provider="Rapidez\SnowdogMenu\SnowdogMenuServiceProvider" --tag=views
Types
Currently there is only an anchor in the views as the category and custom url types are mostly used; but you can check the $item->type and do things conditionally with that, for example:
@if($item->type == 'cms_block')
@content($item->content)
@endif
License
GNU General Public License v3. Please see License File for more information.
统计信息
- 总下载量: 3.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2021-06-30