nox0121 / laravel-utility-command
Laravel 工具命令包
3.0.0
2020-09-29 09:15 UTC
Requires
- php: >=5.6.0
- nox0121/laravel-env-sync-command: 2.0.*
README
这个套件集成了许多有用的 Artisan 命令,主要用于协助系统管理和配置。
目前包含以下套件:
安装方法
composer require nox0121/laravel-utility-command
设置 app.confg(Laravel 5.5 以上版本不需要设置)
'providers' => [
...
Nox0121\LaravelEnvSyncCommand\LaravelEnvSyncCommandServiceProvider::class,
Nox0121\LaravelUtilityCommand\LaravelUtilityCommandServiceProvider::class,
...
];
支持以下指令:
php artisan server:initial
- 初始化数据库并执行迁移和 ReleaseSeeder。php artisan server:optimize
- 优化系统设置。(包括 route/api/config 缓存)php artisan server:no-optimize
- 移除优化系统设置。(包括 route/api/config 缓存)php artisan db:create
- 创建数据库。php artisan env:sync {source} {destination}
- 同步 .env 配置文件。