Package Data | |
---|---|
Maintainer Username: | timtoday |
Maintainer Contact: | tim.today@gmail.com (tim.wang) |
Package Create Date: | 2017-03-23 |
Package Last Update: | 2017-03-27 |
Home Page: | |
Language: | JavaScript |
License: | MIT |
Last Refreshed: | 2024-11-19 03:13:56 |
Package Statistics | |
---|---|
Total Downloads: | 232 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 29 |
Total Watchers: | 3 |
Total Forks: | 8 |
Total Open Issues: | 3 |
汉化: ❤️ by timwang
composer create-project laravel/laravel=5.3.* --prefer-dist
composer require timtoday/voyager-cn
修改 .env 中的数据库选项:
DB_HOST=localhost
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
如果需要可以修改 APP_URL
:
APP_URL=localhost:8000
修改config/app.php
文件中的 providers
数组:
'providers' => [
// Laravel Framework Service Providers...
//...
// 增加这一行
TCG\Voyager\VoyagerServiceProvider::class,
// ...
// Application Service Providers
// ...
],
把本地化语言改成中文:
'locale' => 'zh',
包含测试数据安装
php artisan voyager:install
好啦,启动Laravel服务器:
php artisan serve
访问后台测试地址: http://localhost:8000/admin.
默认管理员:
email:
admin@admin.com
password:password
可以通过命令方式创建管理员
php artisan voyager:admin your@email.com
或者:
php artisan voyager:admin your@email.com --create