|
3 년 전 | |
---|---|---|
app | 3 년 전 | |
bootstrap | 3 년 전 | |
config | 3 년 전 | |
database | 3 년 전 | |
public | 3 년 전 | |
resources | 3 년 전 | |
routes | 3 년 전 | |
storage | 3 년 전 | |
tests | 3 년 전 | |
.editorconfig | 3 년 전 | |
.env.example | 3 년 전 | |
.gitattributes | 3 년 전 | |
.gitignore | 3 년 전 | |
.htaccess | 3 년 전 | |
.styleci.yml | 3 년 전 | |
README.md | 3 년 전 | |
artisan | 3 년 전 | |
composer.json | 3 년 전 | |
composer.lock | 3 년 전 | |
dcat_admin_ide_helper.php | 3 년 전 | |
nginx.htaccess | 3 년 전 | |
package.json | 3 년 전 | |
phpunit.xml | 3 년 전 | |
server.php | 3 년 전 | |
webpack.mix.js | 3 년 전 |
该项目为 思维定制基础API标准
##安装
$ php artisan admin:publish
$ php artisan admin:install
$ php artisan jwt:secret
注意:可以自定义
composer
镜像,加快拉取速度
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
$result = SmsService::send($request->mobile, $request->event, [], $user);
邮箱配置 MAIL_MAILER=smtp MAIL_HOST=ssl://smtp.163.com MAIL_PORT=465 MAIL_USERNAME=youxiang@163.com MAIL_PASSWORD=VIBTDHQAYLKJYIGC MAIL_ENCRYPTION= MAIL_FROM_ADDRESS=youxiang@163.com MAIL_FROM_NAME="${APP_NAME}" });
$result = SmsService::send($request->mobile, $request->event, [], $user);
注意:git clone 从仓库拉取的代码,可能会存在 storage 目录缺失的问题,需要手动创建
$ mkdir -p storage/{app,debugbar,framework,logs}
$ mkdir -p storage/framework/{cache,sessions,testing,views}
$ chmod -R 777 storage bootstrap/cache
注意:如果是 Docker 环境,此步骤必须在容器内执行
$ php artisan storage:link
注意:如果是 Docker 环境,此步骤必须在容器内执行 注意:原始SQL 迁移文件不在本项目
$ php artisan migrate