You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-2Lines changed: 17 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,11 @@ return [
99
99
'pusher' => [
100
100
'app_id' => '',
101
101
'app_key' => '',
102
-
'app_secret' => ''
102
+
'app_secret' => '',
103
+
'options' => [
104
+
'cluster' => 'ap1',
105
+
'encrypted' => true
106
+
]
103
107
]
104
108
]
105
109
];
@@ -108,7 +112,18 @@ return [
108
112
109
113
### Usage
110
114
111
-
Its very easy to use. First you have to set authenticate user id to Talk as globally.
115
+
Its very easy to use. If you want to set authenticate user id globally then you have to set a middleware first. Go to `app/Http/Kernel.php` and set it in `$routeMiddleware` array
And now you can use it from anywhere with middleware. Suppose you have a Controller and you want to set authenticate user id globally then write this in controller constructor
121
+
122
+
```php
123
+
$this->middleware('talk');
124
+
```
125
+
126
+
But instead of set id globally you can use these procedure from any method in controller.
0 commit comments