项目地址:https://github.com/the-control-group/voyager
看readme.md,其中很重要的一句 :Laravel Admin & BREAD System (Browse, Read, Edit, Add, & Delete), made for Laravel 5.3.
要求安装 的laravel 版本为5.3
第一步:创建laravel 5.3项目
composer create-project laravel/laravel voyager --prefer-dist "5.3.*"
第二步:
composer require tcg/voyager
第三步: 配置env
DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret
config/app.php
'providers' => [ // Laravel Framework Service Providers... //... // Package Service Providers TCGVoyagerVoyagerServiceProvider::class, // ... // Application Service Providers // ... ],
php artisan voyager:install --with-dummy
php artisan serve
visit http://localhost:8000/admin.