dukhanin/laravel-panel
Composer 安装命令:
composer require dukhanin/laravel-panel
包简介
Laravel 5 panel constructor
README 文档
README
Laravel Panel constructor
Installation
Require this package with composer:
composer require dukhanin/laravel-panel
After updating composer, add dukhanin/laravel-panel and intervention/image packages supplying your application config with following rows
config/app.php
'providers' => [ ... /* * Package Service Providers... */ Intervention\Image\ImageServiceProvider::class, Dukhanin\Panel\Providers\PanelServiceProvider::class, ], 'aliases' => [ ... 'Image' => Intervention\Image\Facades\Image::class ]
Copy required package files to your application with the publish command:
php artisan vendor:publish --provider="Dukhanin\Panel\Providers\PanelServiceProvider"
Update composer autoload cache:
composer dump-autoload
Require panel routes to your web routes file
routes/web.php
require 'panel.php';
Running sample
Publish sample files (they wouldnt publish with vendor:publish command without defined --tag=sample)
php artisan vendor:publish --provider="Dukhanin\Panel\Providers\PanelServiceProvider" --tag=sample
Update composer autoload cache:
composer dump-autoload
Run sample migrations and seeders
php artisan migrate php artisan db:seed --class=SampleSeeder
Require samples routes to your web routes file
routes/web.php
require 'sample.php';
Go and check out /sample url in your app for sample panels
Sample classes are located in your app directory:
app/Http/Controllers/ app/Sample/
统计信息
- 总下载量: 182
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-10-20