From edafe75cb76f7d9e1d95f596fb28c9f29e09ac74 Mon Sep 17 00:00:00 2001 From: Ronnie Visser Date: Tue, 12 Mar 2019 16:58:40 +0100 Subject: [PATCH] Fix for laravel 5.8 Since the fire method has been removed we need to replace it with the dispatch method. --- src/Krucas/Settings/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Krucas/Settings/Settings.php b/src/Krucas/Settings/Settings.php index 3378c53..edef570 100644 --- a/src/Krucas/Settings/Settings.php +++ b/src/Krucas/Settings/Settings.php @@ -431,7 +431,7 @@ protected function fire($event, $key, array $payload = []) $payload[] = $this->context; if ($this->isEventsEnabled()) { - $this->dispatcher->fire("settings.{$event}: {$key}", $payload); + $this->dispatcher->dispatch("settings.{$event}: {$key}", $payload); } } }