Dispatchable
Less than 1 minute
Dispatchable
Trait Dispatchable.
Provides a static dispatch method to classes that use this trait. This allows event classes to be easily dispatched without needing to manually instantiate them and pass them to the EventDispatcher.
Methods
dispatch
Dispatch the event.
public dispatch(mixed $args): objectCreates a new instance of the class using this trait with the provided arguments, and then dispatches it through the EventDispatcher.
Parameters
| Parameter | Type | Description |
|---|---|---|
$args | mixed |
Generated by Hazaar API Doc Generator on Sun, 01 Mar 2026 09:22:26 +0000