diff --git a/src/Illuminate/Foundation/Events/Dispatchable.php b/src/Illuminate/Foundation/Events/Dispatchable.php index 4a8dbe5e0f46..0018295b676e 100644 --- a/src/Illuminate/Foundation/Events/Dispatchable.php +++ b/src/Illuminate/Foundation/Events/Dispatchable.php @@ -13,4 +13,14 @@ public static function dispatch() { return event(new static(...func_get_args())); } + + /** + * Broadcast the event with the given arguments. + * + * @return \Illuminate\Broadcasting\PendingBroadcast + */ + public static function broadcast() + { + return broadcast(new static(...func_get_args())); + } }