项目作者: friparia

项目描述 :
An automatic admin interface of Laravel, based on vue and elementui
高级语言: PHP
项目地址: git://github.com/friparia/laravel-vue-admin.git
创建时间: 2016-04-05T08:08:55Z
项目社区:https://github.com/friparia/laravel-vue-admin

开源协议:

下载


awesome-admin

A admin framework of laravel

Requirement

  • Laravel 5

Installation

  1. run composer require "friparia/admin:dev-master"
  2. add a line in providers in config/app.php
    Friparia\Admin\AdminServiceProvider::class,
  3. run npm i -S vue-router vue-resource pug vue-style-loader element-ui stylus stylus-loader
  4. in your webpack.mix.js add
    1. .js('./resources/assets/friparia/admin/admin.js', 'public/js')
    and
    1. mix.webpackConfig({
    2. resolve:{
    3. alias: {
    4. 'vue-router$': 'vue-router/dist/vue-router.common.js'
    5. }
    6. }
    7. });
  5. rm default users table migrations and run php artisan vendor:publish
  6. run php artisan migrate
  7. run php artisan jwt:generate
  8. change config/auth $config['providers']['users']['model'] value to “\Friparia\Admin\Models\User”
  9. create a superuser
    php artisan admin:create-superuser
  10. run npm run dev
  11. see /admin in your browser