trait Illuminate / Foundation / Events / Dispatchable

Dispatchable

Methods

public static

dispatch ( ) : mixed

Dispatch the event with the given arguments.

public static

dispatchIf ( $boolean , $arguments ) : mixed

Dispatch the event with the given arguments if the given truth test passes.

Parameters

  • $boolean bool
  • $arguments mixed
public static

dispatchUnless ( $boolean , $arguments ) : mixed

Dispatch the event with the given arguments unless the given truth test passes.

Parameters

  • $boolean bool
  • $arguments mixed
public static

broadcast ( ) : PendingBroadcast

Broadcast the event with the given arguments.