$this->app->make
This commit is contained in:
parent
8f52393ec6
commit
14f54dac62
|
|
@ -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'] ?? []
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue