Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hedeqiang committed Jun 10, 2022
1 parent f1bcd53 commit 2f068c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,11 @@ $response = ApplicationContext::getContainer()->get(IM::class)->send($servername

## 在 Laravel 中使用
#### 发布配置文件

```php
php artisan vendor:publish --provider="Hedeqiang\TenIM\ServiceProvider"
```

##### 编写 .env 文件
```
SDK_APP_ID=
Expand All @@ -188,6 +190,7 @@ SECRET_KEY=

```php
use Hedeqiang\TenIM\IM;

public function index(IM $im)
{
$params = [
Expand All @@ -210,7 +213,6 @@ public function index(IM $im)
```
### 服务名访问
```php

public function index()
{
$params = [
Expand All @@ -235,6 +237,7 @@ public function index()
### Facades 门面使用(可以提示)
```php
use Hedeqiang\TenIM\Facades\IM;

$params = [
'SyncOtherMachine' => 1, // 消息不同步至发送方
'From_Account' => '1',
Expand Down

0 comments on commit 2f068c4

Please sign in to comment.