timtoday / voyager-cn
A Laravel Admin Package
Installs: 232
Dependents: 0
Suggesters: 0
Security: 0
Stars: 29
Watchers: 3
Forks: 8
Open Issues: 3
Language:JavaScript
Requires
- arrilot/laravel-widgets: ^3.7
- doctrine/dbal: ^2.5
- illuminate/support: ~5.3.0|~5.4.0
- intervention/image: ^2.3
- larapack/doctrine-support: ~0.1.0
- league/flysystem: ~1.0.35
Requires (Dev)
- codeclimate/php-test-reporter: dev-master
- laravel/browser-kit-testing: ~1.0.0
- laravel/framework: ~5.3.8|5.4.*
- orchestra/database: 3.3.*|3.4.x-dev
- orchestra/testbench: 3.3.*|3.4.x-dev
- orchestra/testbench-browser-kit: ~3.3.0|~3.4.0
- phpunit/phpcov: ~3.0
- phpunit/phpunit: ~5.7.14
This package is not auto-updated.
Last update: 2024-11-12 04:47:25 UTC
README
由于官方木有中文支持,特意翻译过来希望都用得上,不用天天造轮子
汉化: ❤️ by timwang
放图
安装方式:
首先安装laravel5.3版本
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