PHP 8.3.31
Preview: Exceptions.php Size: 3.32 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Support/Facades/Exceptions.php

<?php

namespace Illuminate\Support\Facades;

use Illuminate\Contracts\Debug\ExceptionHandler;
use Illuminate\Support\Arr;
use Illuminate\Support\Testing\Fakes\ExceptionHandlerFake;

/**
 * @method static void register()
 * @method static \Illuminate\Foundation\Exceptions\ReportableHandler reportable(callable $reportUsing)
 * @method static \Illuminate\Foundation\Exceptions\Handler renderable(callable $renderUsing)
 * @method static \Illuminate\Foundation\Exceptions\Handler map(\Closure|string $from, \Closure|string|null $to = null)
 * @method static \Illuminate\Foundation\Exceptions\Handler dontReport(array|string $exceptions)
 * @method static \Illuminate\Foundation\Exceptions\Handler ignore(array|string $exceptions)
 * @method static \Illuminate\Foundation\Exceptions\Handler dontFlash(array|string $attributes)
 * @method static \Illuminate\Foundation\Exceptions\Handler level(string $type, string $level)
 * @method static void report(\Throwable $e)
 * @method static bool shouldReport(\Throwable $e)
 * @method static \Illuminate\Foundation\Exceptions\Handler throttleUsing(callable $throttleUsing)
 * @method static \Illuminate\Foundation\Exceptions\Handler stopIgnoring(array|string $exceptions)
 * @method static \Illuminate\Foundation\Exceptions\Handler buildContextUsing(\Closure $contextCallback)
 * @method static \Symfony\Component\HttpFoundation\Response render(\Illuminate\Http\Request $request, \Throwable $e)
 * @method static \Illuminate\Foundation\Exceptions\Handler respondUsing(callable $callback)
 * @method static \Illuminate\Foundation\Exceptions\Handler shouldRenderJsonWhen(callable $callback)
 * @method static \Illuminate\Foundation\Exceptions\Handler dontReportDuplicates()
 * @method static \Illuminate\Contracts\Debug\ExceptionHandler handler()
 * @method static void assertReported(\Closure|string $exception)
 * @method static void assertReportedCount(int $count)
 * @method static void assertNotReported(\Closure|string $exception)
 * @method static void assertNothingReported()
 * @method static void renderForConsole(\Symfony\Component\Console\Output\OutputInterface $output, \Throwable $e)
 * @method static \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake throwOnReport()
 * @method static \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake throwFirstReported()
 * @method static \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake setHandler(\Illuminate\Contracts\Debug\ExceptionHandler $handler)
 *
 * @see \Illuminate\Foundation\Exceptions\Handler
 * @see \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake
 */
class Exceptions extends Facade
{
    /**
     * Replace the bound instance with a fake.
     *
     * @param  array<int, class-string<\Throwable>>|class-string<\Throwable>  $exceptions
     * @return \Illuminate\Support\Testing\Fakes\ExceptionHandlerFake
     */
    public static function fake(array|string $exceptions = [])
    {
        $exceptionHandler = static::isFake()
            ? static::getFacadeRoot()->handler()
            : static::getFacadeRoot();

        return tap(new ExceptionHandlerFake($exceptionHandler, Arr::wrap($exceptions)), function ($fake) {
            static::swap($fake);
        });
    }

    /**
     * Get the registered name of the component.
     *
     * @return string
     */
    protected static function getFacadeAccessor()
    {
        return ExceptionHandler::class;
    }
}

Directory Contents

Dirs: 0 × Files: 44

Name Size Perms Modified Actions
9.27 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.86 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
4.97 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.98 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.56 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
4.85 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
3.96 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.42 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.26 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.82 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.39 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
874 B lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
5.34 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
8.18 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
4.80 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
3.32 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
9.00 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
3.81 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.83 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.35 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
9.29 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.12 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.78 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
5.16 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
3.88 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.22 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.33 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.30 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
4.04 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
4.60 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.28 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.33 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.99 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
11.18 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.75 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
8.19 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
7.59 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
3.10 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
3.69 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
8.61 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
3.81 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
1.54 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
5.46 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download
2.32 KB lrw-rw-rw- 2025-09-17 06:53:02
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).