noob/simple_menu_laravel 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

noob/simple_menu_laravel

Composer 安装命令:

composer require noob/simple_menu_laravel

包简介

Simple menu for laravel which loads menu from config file

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

A quick and easy way to create menus in Laravel 5

Documentation

Installation

composer require noob/simple_menu_laravel

Now, append Laravel Menu service provider to providers array in config/app.php.

<?php

'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        ...
        
            'noob\simple_menu_laravel\SimpleMenuServiceProvider::class',
        
        ...

],
?>

At the end of config/app.php add 'SimpleMenu' => 'noob\simple_menu_laravel\SimpleMenuFacade' to the $aliases array:

<?php

'aliases' => [

    ...
    'SimpleMenu'       => 'noob\simple_menu_laravel\SimpleMenuFacade',

],
?>

This registers the package with Laravel and creates an alias called SimpleMenu.

Now publish the config files and view files to the appropriate directory

php artisan vendor:publish

Once published two new files are created at config/menu.php

<?php

    'dash_board' => [
        'title' => 'dashboard',
        'url' => '/',
        'order' => 2,
        'children' => []
    ],
?>

and another one in the views folder at resources/views/Layouts/menu.blade.php

To do

Functionality

Yet to do

Todo

  • create view file for menu
  • publish the view along with config file
  • configure dynamic depth in view file
  • create a method to return as html with essential classnames
  • find active and check active is working
  • add comments to all files
  • invoke BreadCrumbs

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-04-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固