EventFake::assertFired()

void assertFired(string $event, callable|null $callback = null) Assert if an event was fired based on a truth-test callback. Parameters string $event callable|null $callback Return Value void

EventFake

EventFake class EventFake implements Dispatcher (View source) Methods void assertFired(string $event, callable|null $callback = null) Assert if an event was fired based on a truth-test callback. void assertNotFired(string $event, callable|null $callback = null) Determine if an event was fired based on a truth-test callback. Collection fired(string $event, callable|null $callback = null) Get all of the events matching a truth-test callback. bool hasFired(string $event) Deter

Event::__construct()

void __construct(string $command) Create a new event instance. Parameters string $command Return Value void

Event::__callStatic()

static mixed __callStatic(string $method, array $args) Handle dynamic, static calls to the object. Parameters string $method array $args Return Value mixed Exceptions RuntimeException

Event::yearly()

$this yearly() Schedule the event to run yearly. Return Value $this

Event::withoutOverlapping()

$this withoutOverlapping() Do not allow the event to overlap each other. Return Value $this

Event::when()

$this when(Closure $callback) Register a callback to further filter the schedule. Parameters Closure $callback Return Value $this

Event::weeklyOn()

$this weeklyOn(int $day, string $time = '0:0') Schedule the event to run weekly on a given day and time. Parameters int $day string $time Return Value $this

Event::weekly()

$this weekly() Schedule the event to run weekly. Return Value $this

Event::weekdays()

$this weekdays() Schedule the event to run only on weekdays. Return Value $this