From ab20641ad0183343146ad06cde47cb44d9cd2355 Mon Sep 17 00:00:00 2001 From: Justas Raudonius <10882793+justRau@users.noreply.github.com> Date: Tue, 10 Dec 2024 20:31:05 +0200 Subject: [PATCH] Update ServiceProvider.php --- src/ServiceProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServiceProvider.php b/src/ServiceProvider.php index aac8f3d..3c37507 100644 --- a/src/ServiceProvider.php +++ b/src/ServiceProvider.php @@ -26,7 +26,7 @@ public function boot(): void public function register() { $this->app->singleton(SluggableObserver::class, function ($app) { - return new SluggableObserver(new SlugService(), $app['events']); + return new SluggableObserver($this->app->make(SlugService::class), $app['events']); }); }