class Illuminate / Support / Facades / Event
You are viewing an older version of the documentation. For the latest, please visit master documentation.

Event

Extends

See

  • \Illuminate\Events\Dispatcher

Methods

public static

fake ( $eventsToFake ) : EventFake

Replace the bound instance with a fake.

Parameters

  • $eventsToFake array|string
public static

fakeExcept ( $eventsToAllow ) : EventFake

Replace the bound instance with a fake that fakes all events except the given events.

Parameters

  • $eventsToAllow string[]|string
public static

fakeFor ( callable $callable , array $eventsToFake ) : mixed

Replace the bound instance with a fake during the given callable's execution.

Parameters

  • $callable callable
  • $eventsToFake array
public static

fakeExceptFor ( callable $callable , array $eventsToAllow ) : mixed

Replace the bound instance with a fake during the given callable's execution.

Parameters

  • $callable callable
  • $eventsToAllow array
protected static

getFacadeAccessor ( ) : string

Get the registered name of the component.