File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/laravel/framework/src/Illuminate/Support/Facades
Upload
[..]
Artisan.php (1.91 KB)
Edit
Rename
Del
Auth.php (5.07 KB)
Edit
Rename
Del
Blade.php (3.06 KB)
Edit
Rename
Del
Broadcast.php (2.75 KB)
Edit
Rename
Del
Cache.php (6.04 KB)
Edit
Rename
Del
Concurrency.php (1.44 KB)
Edit
Rename
Del
Config.php (1.37 KB)
Edit
Rename
Del
Cookie.php (2.39 KB)
Edit
Rename
Del
Crypt.php (928 B)
Edit
Rename
Del
Date.php (8.18 KB)
Edit
Rename
Del
Event.php (5.07 KB)
Edit
Rename
Del
Facade.php (9.11 KB)
Edit
Rename
Del
Gate.php (2.77 KB)
Edit
Rename
Del
Hash.php (1.36 KB)
Edit
Rename
Del
Http.php (10.74 KB)
Edit
Rename
Del
Lang.php (2.35 KB)
Edit
Rename
Del
Log.php (2.84 KB)
Edit
Rename
Del
MaintenanceMode.php (948 B)
Edit
Rename
Del
Notification.php (4.04 KB)
Edit
Rename
Del
Password.php (2.41 KB)
Edit
Rename
Del
Pipeline.php (1.62 KB)
Edit
Rename
Del
Queue.php (8.02 KB)
Edit
Rename
Del
Redirect.php (2.33 KB)
Edit
Rename
Del
Redis.php (23.75 KB)
Edit
Rename
Del
Request.php (11.82 KB)
Edit
Rename
Del
Response.php (2.94 KB)
Edit
Rename
Del
Session.php (4.02 KB)
Edit
Rename
Del
Storage.php (9.1 KB)
Edit
Rename
Del
URL.php (3.89 KB)
Edit
Rename
Del
Validator.php (1.54 KB)
Edit
Rename
Del
View.php (5.5 KB)
Edit
Rename
Del
Vite.php (2.52 KB)
Edit
Rename
Del
Edit: Event.php
<?php namespace Illuminate\Support\Facades; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Testing\Fakes\EventFake; /** * @method static void listen(\Illuminate\Events\QueuedClosure|callable|array|string $events, \Illuminate\Events\QueuedClosure|callable|array|string|null $listener = null) * @method static bool hasListeners(string $eventName) * @method static bool hasWildcardListeners(string $eventName) * @method static void push(string $event, object|array $payload = []) * @method static void flush(string $event) * @method static void subscribe(object|string $subscriber) * @method static array|null until(string|object $event, mixed $payload = []) * @method static array|null dispatch(string|object $event, mixed $payload = [], bool $halt = false) * @method static array getListeners(string $eventName) * @method static \Closure makeListener(\Closure|string|array $listener, bool $wildcard = false) * @method static \Closure createClassListener(string $listener, bool $wildcard = false) * @method static void forget(string $event) * @method static void forgetPushed() * @method static \Illuminate\Events\Dispatcher setQueueResolver(callable $resolver) * @method static \Illuminate\Events\Dispatcher setTransactionManagerResolver(callable $resolver) * @method static mixed defer(callable $callback, string[]|null $events = null) * @method static array getRawListeners() * @method static void macro(string $name, object|callable $macro) * @method static void mixin(object $mixin, bool $replace = true) * @method static bool hasMacro(string $name) * @method static void flushMacros() * @method static string|null resolveConnectionFromQueueRoute(object $queueable) * @method static string|null resolveQueueFromQueueRoute(object $queueable) * @method static \Illuminate\Support\Testing\Fakes\EventFake except(array|string $eventsToDispatch) * @method static void assertListening(string $expectedEvent, string|array $expectedListener) * @method static void assertDispatched(string|\Closure $event, callable|int|null $callback = null) * @method static void assertDispatchedOnce(string $event) * @method static void assertDispatchedTimes(string $event, int $times = 1) * @method static void assertNotDispatched(string|\Closure $event, callable|null $callback = null) * @method static void assertNothingDispatched() * @method static \Illuminate\Support\Collection dispatched(string $event, callable|null $callback = null) * @method static bool hasDispatched(string $event) * @method static array dispatchedEvents() * * @see \Illuminate\Events\Dispatcher * @see \Illuminate\Support\Testing\Fakes\EventFake */ class Event extends Facade { /** * Replace the bound instance with a fake. * * @param array|string $eventsToFake * @return \Illuminate\Support\Testing\Fakes\EventFake */ public static function fake($eventsToFake = []) { $actualDispatcher = static::isFake() ? static::getFacadeRoot()->dispatcher : static::getFacadeRoot(); return tap(new EventFake($actualDispatcher, $eventsToFake), function ($fake) { static::swap($fake); Model::setEventDispatcher($fake); Cache::refreshEventDispatcher(); }); } /** * Replace the bound instance with a fake that fakes all events except the given events. * * @param string[]|string $eventsToAllow * @return \Illuminate\Support\Testing\Fakes\EventFake */ public static function fakeExcept($eventsToAllow) { return static::fake([ function ($eventName) use ($eventsToAllow) { return ! in_array($eventName, (array) $eventsToAllow); }, ]); } /** * Replace the bound instance with a fake during the given callable's execution. * * @param callable $callable * @param array $eventsToFake * @return mixed */ public static function fakeFor(callable $callable, array $eventsToFake = []) { $originalDispatcher = static::getFacadeRoot(); static::fake($eventsToFake); try { return $callable(); } finally { static::swap($originalDispatcher); Model::setEventDispatcher($originalDispatcher); Cache::refreshEventDispatcher(); } } /** * Replace the bound instance with a fake during the given callable's execution. * * @param callable $callable * @param array $eventsToAllow * @return mixed */ public static function fakeExceptFor(callable $callable, array $eventsToAllow = []) { $originalDispatcher = static::getFacadeRoot(); static::fakeExcept($eventsToAllow); try { return $callable(); } finally { static::swap($originalDispatcher); Model::setEventDispatcher($originalDispatcher); Cache::refreshEventDispatcher(); } } /** * Get the registered name of the component. * * @return string */ protected static function getFacadeAccessor() { return 'events'; } }
Simpan