Skip to content

Commit

Permalink
Merge pull request #15 from pelmered/master
Browse files Browse the repository at this point in the history
Event sent to Listener is empty.
  • Loading branch information
Lisennk authored Jun 9, 2020
2 parents f811957 + 080df8a commit e17c6c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/EventController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function fire(Request $request, EventCreator $events)
{
$event = $events->make($request->input('event.type'));
$event->setFromRequest($request);
event(new $event);
event($event);

return response('Event received', 200);
}
Expand Down

0 comments on commit e17c6c6

Please sign in to comment.