Skip to content

Commit

Permalink
Support laravel 5.8 (#131)
Browse files Browse the repository at this point in the history
The fire method (which was deprecated in Laravel 5.4) of the Illuminate/Events/Dispatcher class has been removed. You should use the dispatch method instead.
  • Loading branch information
moecasts authored and musonza committed Mar 17, 2019
1 parent 2416562 commit 739532a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eventing/EventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function dispatch(array $events)
if (Chat::broadcasts()) {
foreach ($events as $event) {
$eventName = $this->getEventName($event);
$this->event->fire($eventName, $event);
$this->event->dispatch($eventName, $event);
}
}
}
Expand Down

0 comments on commit 739532a

Please sign in to comment.