shopex / luban-admin
Luban Laravel Admin Panel
v1.2.16
2018-06-29 07:40 UTC
Requires
- php: >=5.5.9
- illuminate/support: ^5.4
- laravelcollective/html: ~5.4
- shopex/luban-crud-generator: ^2.1
README
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