承接 devfactory/menu 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

devfactory/menu

最新稳定版本:1.1.0

Composer 安装命令:

composer require devfactory/menu

包简介

menu

README 文档

README

Laravel Laravel License

#Menu

This is a package for the Laravel framework, it allows for a specified set of menu to be overridden in the database by the user of the site

Installation

Laravel 5

Using Composer, edit your composer.json file to require devfactory/media.

"require": {
  "devfactory/menu": "1.0.*"
}

Then from the terminal run

composer update

Then in your app/config/app.php file register the service provider:

'Devfactory\Menu\MenuServiceProvider',

and the Facade:

'MenuAdmin' => 'Devfactory\Menu\Facades\Menu',

From within the the laravel folder of your project, run:

php artisan vendor:publish

Run the migration to create the DB table:

php artisan migrate

You have to add the Controller to your routes.php, so that you can set your own url/filters.

Route::group(array('before' => 'admin-auth'), function() {
  Route::controller('menu', '\Devfactory\Menu\Controllers\MenuController');
});

To show the menu

  {!! MenuAdmin::show('nav menu'); !!}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-14