ddvue/adminpanel

package for ddvue admin panel things

1.01 2018-08-05 01:20 UTC

This package is not auto-updated.

Last update: 2024-04-14 02:29:41 UTC


README

后台管理模块,需要 laravel 5.x,vue,element-ui。

安装

composer require ddvue/adminpanel
php artisan vendor:publish
select the Provider and tag with ddvue

使用

  1. 首先php artisan migrate
  2. 在config/ddvue/base.php中可以配置后台路由前缀
  3. 可以在网站里直接调用route('Ddvue.AdminPanel.home')

vue说明

公共事件

Vue.prototype.$eventHub = Vue.prototype.$eventHub || new Vue(); 使用时注意,在调用方法里要先off掉事件,结束时再on,否则可能出现重复调用的情况。