class
Illuminate
/
Support
/
Facades
/
Event
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.
Event
Extends
See
- \Illuminate\Events\Dispatcher
- \Illuminate\Support\Testing\Fakes\EventFake
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.