/
SVH_Enjoer
/
fetch
Обзор
Документация
Войти
/
SVH_Enjoer
/
fetch
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
bootstrap/app.php
24 строки
748 B
ksergeev
init
25 июл 2026, 20:32
25 июл 2026, 20:32
aed35bc
Код
Авторство
О чём код?
<?php use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; use Illuminate\Http\Request; use Nette\Schema\Expect; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: __DIR__.'/../routes/web.php', commands: __DIR__.'/../routes/console.php', health: '/up', ) ->withMiddleware(function (Middleware $middleware): void { $middleware->preventRequestForgery([ 'api/*' ]); }) ->withExceptions(function (Exceptions $exceptions): void { $exceptions->shouldRenderJsonWhen( fn (Request $request) => $request->is('api/*'), ); })->create();