Skip to content

Commit

Permalink
docs(readme): Update README files with code snippet
Browse files Browse the repository at this point in the history
- Update README-zh_CN.md and README.md with the latest code snippets
  • Loading branch information
guanguans committed Apr 1, 2024
1 parent 529037f commit b7d0863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 22 deletions.
12 changes: 1 addition & 11 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,12 @@ $ composer require guanguans/laravel-soar --dev -v

## 配置

### 注册服务

#### laravel
### 发布文件(可选的)

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

#### lumen

将以下代码段添加到 `bootstrap/app.php` 文件中的 `Register Service Providers` 部分下:

```php
$app->register(\Guanguans\LaravelSoar\SoarServiceProvider::class);
```

### :warning: 在 unix 操作系统非 cli 环境中运行时,可能会抛出 Fatal error: ...Exit Code: 2(Misuse of shell builtins)

```shell
Expand Down
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,12 @@ $ composer require guanguans/laravel-soar --dev -v

## Configuration

### Register service

#### laravel
### Publish files(optional)

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

#### lumen

Add the following snippet to the `bootstrap/app.php` file under the `Register Service Providers` section as follows:

```php
$app->register(\Guanguans\LaravelSoar\SoarServiceProvider::class);
```

### :warning: When running in a unix OS non-cli environment, may throw Fatal error: ...Exit Code: 2(Misuse of shell builtins)

```shell
Expand Down

0 comments on commit b7d0863

Please sign in to comment.