Skip to content

Commit

Permalink
更新描述文件
Browse files Browse the repository at this point in the history
  • Loading branch information
mliuchengyu committed Mar 25, 2021
1 parent 310a779 commit b66a457
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,12 @@ composer create-project --prefer-dist laravel/laravel laravel "7.30.0"
composer require fast-api/permission dev-master
```

#### 配置laravel env 文件
##### 配置laravel env 文件

在按照上面建议的完成程序的安装之后,下面请配置数据库
通过添加以下内容到您的应用程序'.env文件(带有合适的值):

数据库:
```ini
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
Expand All @@ -47,8 +48,7 @@ DB_DATABASE=fast-api
DB_USERNAME=root
DB_PASSWORD=root
```

#### API前缀
API前缀:

如果您曾经使用过API,就会知道大多数服务都是通过子域或前缀提供的。前缀或子域是必需的,但只有一个。避免将版本号作为前缀或子域,因为版本控制是通过Accept标头处理的。
您可以在.env文件中进行配置。
Expand All @@ -57,7 +57,7 @@ DB_PASSWORD=root
API_PREFIX=api
```

#### laravel config/auth.php 参数
## laravel config/auth.php 参数
```php
// Authentication Defaults
'defaults' => [
Expand Down

0 comments on commit b66a457

Please sign in to comment.