$this->app->make

This commit is contained in:
Alex Renoki 2020-08-13 22:05:57 +03:00
parent 8f52393ec6
commit 14f54dac62
2 changed files with 1 additions and 2 deletions

View File

@ -66,7 +66,7 @@ class WebSocketsServiceProvider extends ServiceProvider
}); });
} }
$this->app->get(BroadcastManager::class)->extend('websockets', function ($app, array $config) { $this->app->make(BroadcastManager::class)->extend('websockets', function ($app, array $config) {
$pusher = new Pusher( $pusher = new Pusher(
$config['key'], $config['secret'], $config['key'], $config['secret'],
$config['app_id'], $config['options'] ?? [] $config['app_id'], $config['options'] ?? []

View File

@ -40,7 +40,6 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
protected function getPackageProviders($app) protected function getPackageProviders($app)
{ {
return [ return [
\Illuminate\Broadcasting\BroadcastServiceProvider::class,
\BeyondCode\LaravelWebSockets\WebSocketsServiceProvider::class, \BeyondCode\LaravelWebSockets\WebSocketsServiceProvider::class,
]; ];
} }