Skip to content

Commit b7d0863

Browse files
committed
docs(readme): Update README files with code snippet
- Update README-zh_CN.md and README.md with the latest code snippets
1 parent 529037f commit b7d0863

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

README-zh_CN.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,12 @@ $ composer require guanguans/laravel-soar --dev -v
4444

4545
## 配置
4646

47-
### 注册服务
48-
49-
#### laravel
47+
### 发布文件(可选的)
5048

5149
```shell
5250
$ php artisan vendor:publish --provider="Guanguans\\LaravelSoar\\SoarServiceProvider"
5351
```
5452

55-
#### lumen
56-
57-
将以下代码段添加到 `bootstrap/app.php` 文件中的 `Register Service Providers` 部分下:
58-
59-
```php
60-
$app->register(\Guanguans\LaravelSoar\SoarServiceProvider::class);
61-
```
62-
6353
### :warning: 在 unix 操作系统非 cli 环境中运行时,可能会抛出 Fatal error: ...Exit Code: 2(Misuse of shell builtins)
6454

6555
```shell

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,12 @@ $ composer require guanguans/laravel-soar --dev -v
4545

4646
## Configuration
4747

48-
### Register service
49-
50-
#### laravel
48+
### Publish files(optional)
5149

5250
```shell
5351
$ php artisan vendor:publish --provider="Guanguans\\LaravelSoar\\SoarServiceProvider"
5452
```
5553

56-
#### lumen
57-
58-
Add the following snippet to the `bootstrap/app.php` file under the `Register Service Providers` section as follows:
59-
60-
```php
61-
$app->register(\Guanguans\LaravelSoar\SoarServiceProvider::class);
62-
```
63-
6454
### :warning: When running in a unix OS non-cli environment, may throw Fatal error: ...Exit Code: 2(Misuse of shell builtins)
6555

6656
```shell

0 commit comments

Comments
 (0)