Event
Illuminate\Support\Facades\Event
class src/Illuminate/Support/Facades/Event.php
assertDispatched
v11.0.0 以前から
static @method
static assertDispatched(string|\Closure $event, callable|array|int|null $callback = null): void
-
v11.0.0
追加
- 変更後
@method static assertDispatched(string|\Closure $event, callable|int|null $callback = null): void
-
v13.35.0
シグネチャ変更
- 変更前
@method static assertDispatched(string|\Closure $event, callable|int|null $callback = null): void- 変更後
@method static assertDispatched(string|\Closure $event, callable|array|int|null $callback = null): void
assertDispatchedOnce
v12.22.0 から
static @method
static assertDispatchedOnce(string $event): void
assertDispatchedTimes
v11.0.0 以前から
static @method
static assertDispatchedTimes(string $event, int $times = 1): void
-
v11.0.0
追加
- 変更後
@method static assertDispatchedTimes(string $event, int $times = 1): void
assertListening
v11.0.0 以前から
static @method
static assertListening(string $expectedEvent, string|array $expectedListener): void
-
v11.0.0
追加
- 変更後
@method static assertListening(string $expectedEvent, string|array $expectedListener): void
assertNotDispatched
v11.0.0 以前から
static @method
static assertNotDispatched(string|\Closure $event, callable|array|null $callback = null): void
-
v11.0.0
追加
- 変更後
@method static assertNotDispatched(string|\Closure $event, callable|null $callback = null): void
-
v13.35.0
シグネチャ変更
- 変更前
@method static assertNotDispatched(string|\Closure $event, callable|null $callback = null): void- 変更後
@method static assertNotDispatched(string|\Closure $event, callable|array|null $callback = null): void
assertNothingDispatched
v11.0.0 以前から
static @method
static assertNothingDispatched(): void
-
v11.0.0
追加
- 変更後
@method static assertNothingDispatched(): void
createClassListener
v11.0.0 以前から
static @method
static createClassListener(string $listener, bool $wildcard = false): \Closure
-
v11.0.0
追加
- 変更後
@method static createClassListener(string $listener, bool $wildcard = false): \Closure
defer
v12.22.0 から
static @method
static defer(callable $callback, string[]|null $events = null): mixed
-
v12.22.0
追加
- 変更後
@method static defer(callable $callback, array|null $events = null): mixed
-
v12.41.0
シグネチャ変更
- 変更前
@method static defer(callable $callback, array|null $events = null): mixed- 変更後
@method static defer(callable $callback, string[]|null $events = null): void
-
v12.44.0
シグネチャ変更
- 変更前
@method static defer(callable $callback, string[]|null $events = null): void- 変更後
@method static defer(callable $callback, string[]|null $events = null): mixed
dispatch
v11.0.0 以前から
static @method
static dispatch(string|object $event, mixed $payload = [], bool $halt = false): array|null
-
v11.0.0
追加
- 変更後
@method static dispatch(string|object $event, mixed $payload = [], bool $halt = false): array|null
dispatched
v11.0.0 以前から
static @method
static dispatched(string $event, callable|array|null $callback = null): \Illuminate\Support\Collection
-
v11.0.0
追加
- 変更後
@method static dispatched(string $event, callable|null $callback = null): \Illuminate\Support\Collection
-
v13.35.0
シグネチャ変更
- 変更前
@method static dispatched(string $event, callable|null $callback = null): \Illuminate\Support\Collection- 変更後
@method static dispatched(string $event, callable|array|null $callback = null): \Illuminate\Support\Collection
dispatchedEvents
v11.3.0 から
static @method
static dispatchedEvents(): array
-
v11.3.0
追加
- 変更後
@method static dispatchedEvents(): array
except
v11.0.0 以前から
static @method
static except(array|string $eventsToDispatch): \Illuminate\Support\Testing\Fakes\EventFake
-
v11.0.0
追加
- 変更後
@method static except(array|string $eventsToDispatch): \Illuminate\Support\Testing\Fakes\EventFake
fake
v11.0.0 以前から
static
static fake($eventsToFake = [])
@param array|string $eventsToFake
@return \Illuminate\Support\Testing\Fakes\EventFake
-
v11.0.0
追加
- 変更後
static fake($eventsToFake = []) [@param array|string $eventsToFake, @return \Illuminate\Support\Testing\Fakes\EventFake]
fakeExcept
v11.0.0 以前から
static
static fakeExcept($eventsToAllow)
@param string[]|string $eventsToAllow
@return \Illuminate\Support\Testing\Fakes\EventFake
-
v11.0.0
追加
- 変更後
static fakeExcept($eventsToAllow) [@param string[]|string $eventsToAllow, @return \Illuminate\Support\Testing\Fakes\EventFake]
fakeExceptFor
v11.0.0 以前から
static
static fakeExceptFor(callable $callable, array $eventsToAllow = [])
@param callable $callable
@param array $eventsToAllow
@return mixed
-
v11.0.0
追加
- 変更後
static fakeExceptFor(callable $callable, array $eventsToAllow = []) [@param callable $callable, @param array $eventsToAllow, @return mixed]
fakeFor
v11.0.0 以前から
static
static fakeFor(callable $callable, array $eventsToFake = [])
@param callable $callable
@param array $eventsToFake
@return mixed
-
v11.0.0
追加
- 変更後
static fakeFor(callable $callable, array $eventsToFake = []) [@param callable $callable, @param array $eventsToFake, @return mixed]
flush
v11.0.0 以前から
static @method
static flush(string $event): void
-
v11.0.0
追加
- 変更後
@method static flush(string $event): void
flushMacros
v11.0.0 以前から
static @method
static flushMacros(): void
-
v11.0.0
追加
- 変更後
@method static flushMacros(): void
forget
v11.0.0 以前から
static @method
static forget(string $event): void
-
v11.0.0
追加
- 変更後
@method static forget(string $event): void
forgetPushed
v11.0.0 以前から
static @method
static forgetPushed(): void
-
v11.0.0
追加
- 変更後
@method static forgetPushed(): void
getListeners
v11.0.0 以前から
static @method
static getListeners(string $eventName): array
-
v11.0.0
追加
- 変更後
@method static getListeners(string $eventName): array
getRawListeners
v11.0.0 以前から
static @method
static getRawListeners(): array
-
v11.0.0
追加
- 変更後
@method static getRawListeners(): array
hasDispatched
v11.0.0 以前から
static @method
static hasDispatched(string $event): bool
-
v11.0.0
追加
- 変更後
@method static hasDispatched(string $event): bool
hasListeners
v11.0.0 以前から
static @method
static hasListeners(string $eventName): bool
-
v11.0.0
追加
- 変更後
@method static hasListeners(string $eventName): bool
hasMacro
v11.0.0 以前から
static @method
static hasMacro(string $name): bool
-
v11.0.0
追加
- 変更後
@method static hasMacro(string $name): bool
hasWildcardListeners
v11.0.0 以前から
static @method
static hasWildcardListeners(string $eventName): bool
-
v11.0.0
追加
- 変更後
@method static hasWildcardListeners(string $eventName): bool
listen
v11.0.0 以前から
static @method
static listen(\Illuminate\Events\QueuedClosure|callable|array|string $events, \Illuminate\Events\QueuedClosure|callable|array|string|null $listener = null): void
-
v11.0.0
追加
- 変更後
@method static listen(\Closure|string|array $events, \Closure|string|array|null $listener = null): void
-
v11.21.0
シグネチャ変更
- 変更前
@method static listen(\Closure|string|array $events, \Closure|string|array|null $listener = null): void- 変更後
@method static listen(\Illuminate\Events\QueuedClosure|\Closure|string|array $events, \Illuminate\Events\QueuedClosure|\Closure|string|array|null $listener = null): void
-
v11.34.0
シグネチャ変更
- 変更前
@method static listen(\Illuminate\Events\QueuedClosure|\Closure|string|array $events, \Illuminate\Events\QueuedClosure|\Closure|string|array|null $listener = null): void- 変更後
@method static listen(\Illuminate\Events\QueuedClosure|callable|array|string $events, \Illuminate\Events\QueuedClosure|callable|array|string|null $listener = null): void
macro
v11.0.0 以前から
static @method
static macro(string $name, object|callable $macro): void
-
v11.0.0
追加
- 変更後
@method static macro(string $name, object|callable $macro): void
-
v11.8.0
シグネチャ変更
- 変更前
@method static macro(string $name, object|callable $macro): void- 変更後
@method static macro(string $name, object|callable $macro, object|callable $macro = null): void
-
v11.23.3
シグネチャ変更
- 変更前
@method static macro(string $name, object|callable $macro, object|callable $macro = null): void- 変更後
@method static macro(string $name, object|callable $macro): void
makeListener
v11.0.0 以前から
static @method
static makeListener(\Closure|string|array $listener, bool $wildcard = false): \Closure
-
v11.0.0
追加
- 変更後
@method static makeListener(\Closure|string|array $listener, bool $wildcard = false): \Closure
mixin
v11.0.0 以前から
static @method
static mixin(object $mixin, bool $replace = true): void
-
v11.0.0
追加
- 変更後
@method static mixin(object $mixin, bool $replace = true): void
push
v11.0.0 以前から
static @method
static push(string $event, object|array $payload = []): void
-
v11.0.0
追加
- 変更後
@method static push(string $event, object|array $payload = []): void
resolveConnectionFromQueueRoute
v13.0.0 から
static @method
static resolveConnectionFromQueueRoute(object $queueable): string|null
-
v13.0.0
追加
- 変更後
@method static resolveConnectionFromQueueRoute(object $queueable): string|null
resolveQueueFromQueueRoute
v13.0.0 から
static @method
static resolveQueueFromQueueRoute(object $queueable): string|null
-
v13.0.0
追加
- 変更後
@method static resolveQueueFromQueueRoute(object $queueable): string|null
setQueueResolver
v11.0.0 以前から
static @method
static setQueueResolver(callable $resolver): \Illuminate\Events\Dispatcher
-
v11.0.0
追加
- 変更後
@method static setQueueResolver(callable $resolver): \Illuminate\Events\Dispatcher
setTransactionManagerResolver
v11.0.0 以前から
static @method
static setTransactionManagerResolver(callable $resolver): \Illuminate\Events\Dispatcher
-
v11.0.0
追加
- 変更後
@method static setTransactionManagerResolver(callable $resolver): \Illuminate\Events\Dispatcher
-
v12.41.0
シグネチャ変更
- 変更前
@method static setTransactionManagerResolver(callable $resolver): \Illuminate\Events\Dispatcher- 変更後
@method static setTransactionManagerResolver(callable|null $resolver): \Illuminate\Events\Dispatcher
-
v12.53.0
シグネチャ変更
- 変更前
@method static setTransactionManagerResolver(callable|null $resolver): \Illuminate\Events\Dispatcher- 変更後
@method static setTransactionManagerResolver(callable $resolver): \Illuminate\Events\Dispatcher
subscribe
v11.0.0 以前から
static @method
static subscribe(object|string $subscriber): void
-
v11.0.0
追加
- 変更後
@method static subscribe(object|string $subscriber): void
until
v11.0.0 以前から
static @method
static until(string|object $event, mixed $payload = []): array|null