Files
xk-api-old-laravel/README.md
2025-01-11 14:16:20 +08:00

23 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 关于
[Laravel](https://github.com/laravel/laravel)本地化(中文化)项目模板,带一键安装更新命令,目前[Laravel](https://github.com/laravel/laravel)版本是9.x版本。
## 快速开始
复制`.env.example`到`.env`文件,在`.env`文件里配置好数据库配置,在命令行里执行`php artisan system install`即可。
## 使用
内置了vendor环境,如不需要,请去`.gitignore`内添加`/vendor`,在命令行里执行`git rm -r --cached ./vendor`,然后再提交到git库即可。
如果需要使用内置vendor环境,请在开发前更新一下环境,执行`composer update`即可。
一键安装/更新命令 `php artisan system install`,`php artisan system update`。
`php artisan system install`会在项目根目录产生`install.lock`文件,如果无权限,请自行更改命令代码。
建议查看一下`app/Console/Commands/SystemCommand.php`(`php artisan system`)逻辑,以便更好的使用该命令。
目前问题:在`production`环境下无法正确执行询问形命令,目前尚无解决方法。
其他命令`php artisan`查看。