diff --git a/src/RayServiceProvider.php b/src/RayServiceProvider.php index a6ff4ce..ecbf1a9 100644 --- a/src/RayServiceProvider.php +++ b/src/RayServiceProvider.php @@ -50,7 +50,7 @@ protected function registerBindings(): self { $settings = app(Settings::class); - $this->app->bind(Client::class, fn () => new Client($settings->port), $settings->host); + $this->app->bind(Client::class, fn () => new Client($settings->port, $settings->host)); $this->app->bind(Ray::class, function () { $client = app(Client::class);