diff --git a/src/Laravel/WebPrintClientServiceProvider.php b/src/Laravel/WebPrintClientServiceProvider.php index 2e968ed..1ec0c4a 100644 --- a/src/Laravel/WebPrintClientServiceProvider.php +++ b/src/Laravel/WebPrintClientServiceProvider.php @@ -27,13 +27,14 @@ public function boot() */ public function register() { - $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'webprint'); + $this->mergeConfigFrom(__DIR__.'/../../config/config.php', 'webprint'); $this->app->bind(HttpClientInterface::class, fn () => new GuzzleHttp7Client( config('webprint.endpoint'), config('webprint.token'), )); + $this->app->bind(LaravelWebPrintApiInterface::class, LaravelWebPrintApi::class); $this->app->bind(WebPrintApiInterface::class, LaravelWebPrintApi::class); $this->app->bind(WebPrintApi::class, LaravelWebPrintApi::class); }