Skip to content

Commit

Permalink
Merge pull request #8 from carandclassic/make-client-singleton
Browse files Browse the repository at this point in the history
make client singleton
  • Loading branch information
BinaryKitten authored Dec 9, 2022
2 parents 32ec6b6 + f8bfe89 commit ee2b308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Providers/TalkJSServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function register(): void
'talkjs'
);

$this->app->bind(
$this->app->singleton(
TalkJSClient::class,
static function ($app, $params) {
$appId = $params['appId'] ?? config('talkjs.app_id');
Expand Down

0 comments on commit ee2b308

Please sign in to comment.