Closed erisrayanesh closed 3 years ago
Hi. The dispatch method of Illuminate\Foundation\Events\Dispatchable trait doesn't support the halt option in dispatch method of Illuminate\Events\Dispatcher.
dispatch
Illuminate\Foundation\Events\Dispatchable
halt
Illuminate\Events\Dispatcher
The trait method gathers all the arguments for the event class and should be changed to something like:
public static function dispatch($halt, ...$arguments) { return event(new static($arguments), [], $halt); }
Feel free to open a PR
Hi. The
dispatch
method ofIlluminate\Foundation\Events\Dispatchable
trait doesn't support thehalt
option indispatch
method ofIlluminate\Events\Dispatcher
.The trait method gathers all the arguments for the event class and should be changed to something like: