classy/mega-menu
Composer 安装命令:
composer require classy/mega-menu
包简介
A Laravel MegaMenu Package to make your life easier
关键字:
README 文档
README
A Laravel MegaMenu Package to make your life easier supporting Laravel 5.4, 5.5 and 5.6!
Installation Steps
1. Require the Package
After creating your new Laravel application you can include the ClassyMenu package with the following command:
composer require classy/mega-menu
2. Add the DB Credentials
Next make sure to create a new database and add your database credentials to your .env file:
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
3. Run The Migration
php artisan migrate:install
OR
php artisan migrate:refresh
Congratulations Can you use Classy Menu now
How To Use
to show your menu by name use
$menuname = "main_menu" @ menu name from database $type = "default" Or "bootstrap" Or "costem.menu.view" $options = array('color' => true , 'background' => true , 'icon' => true) Or in blade $option1 = "background" background color in database @css $option2 = "color" Font Color in database @css $option3 = "icon" icon class in database exa: fa fa-home By Blade Directive @ClassyMenu(String $menuname, String $type, String $option1, String $option2 ,String option3) example @ClassyMenu(main,bootstrap,color,icon) example @ClassyMenu(main,mymenu,color) example @ClassyMenu(main,default) By Helper Function ClassyMenu(String $menuname,String $type ,array options) example ClassyMenu("main","bootstrap",["color"=>true,"icon"=>true]) example ClassyMenu("main","mymenu",["background"=>true]) example ClassyMenu("main","fronend.menu.mymenu") By Fcade ClassyMenu::display(String $menuname,String $type ,array options) example ClassyMenu::display("main","bootstrap",["color"=>true,"icon"=>true]) example ClassyMenu::display("main","mymenu",["background"=>true]) example ClassyMenu::display("main","fronend.menu.mymenu")
classy/mega-menu 适用场景与选型建议
classy/mega-menu 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 07 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「menu」 「bootstrap」 「laravel」 「nav」 「megamenu」 「drop down」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 classy/mega-menu 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 classy/mega-menu 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 classy/mega-menu 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Symfony extension to get active class base on current bundle/controller/action
Views for the package MedicOneSystems Livewire Datatables with Bootstrap 4
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Selectize Theme for Bootstrap 4
Yii2 DynaTree Menu widget uses Dynamic tree view control jquery.dynatree.js
Alfabank REST API integration
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-27