diff --git a/src/Providers/LikeableServiceProvider.php b/src/Providers/LikeableServiceProvider.php index 8c697e2a..5c7f0f50 100644 --- a/src/Providers/LikeableServiceProvider.php +++ b/src/Providers/LikeableServiceProvider.php @@ -63,7 +63,6 @@ public function register() */ protected function bootObservers() { - $class = $this->app->make(LikeContract::class); - $class::observe(new LikeObserver()); + $this->app->make(LikeContract::class)->observe(new LikeObserver()); } }