friparia/admin

There is no license information available for the latest version (dev-master) of this package.

customized mvc to build admin easily

dev-master 2017-07-04 07:24 UTC

This package is not auto-updated.

Last update: 2024-09-28 18:58:43 UTC


README

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
.js('./resources/assets/friparia/admin/admin.js', 'public/js')

and

mix.webpackConfig({
    resolve:{
        alias: {
            'vue-router$': 'vue-router/dist/vue-router.common.js'
        }
    }
});
  1. rm default users table migrations and run php artisan vendor:publish
  2. run php artisan migrate
  3. run php artisan jwt:generate
  4. change config/auth $config['providers']['users']['model'] value to "\Friparia\Admin\Models\User"
  5. create a superuser php artisan admin:create-superuser
  6. run npm run dev
  7. see /admin in your browser