Package Data | |
---|---|
Maintainer Username: | shopex |
Maintainer Contact: | dev@shopex.cn (shopex) |
Package Create Date: | 2017-08-17 |
Package Last Update: | 2018-07-09 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-15 15:03:41 |
Package Statistics | |
---|---|
Total Downloads: | 958 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 7 |
Total Watchers: | 9 |
Total Forks: | 1 |
Total Open Issues: | 0 |
composer create-project laravel/laravel admin
cd admin
composer require shopex/luban-admin
生成vendor提供的文件
php artisan vendor:publish
php artisan make:auth
config/app.config 下增加
//Providers...
App\Providers\DesktopServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
Shopex\LubanAdmin\Providers\LubanAdminProvider::class,
//Facade...
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
'Admin' => Shopex\LubanAdmin\Facades\Admin::class,
resources/assets/js/app.js 下增加
require('../vendor/admin/js/ui.js')
resources/assets/sass/app.scss 下增加
@import "../vendor/admin/sass/app";
routes/web.php
Admin::routes();
Route::get('/profile', function(){
return 'profile';
})->middleware('auth');
Route::get('/admin-site-menus', function(){
return [];
})->middleware('auth');
编译js/css, 运行程序.
npm run dev
php artisan migrate
php artisan serve