Начальный коммит: рабочая версия с исправленной авторизацией

This commit is contained in:
root
2026-01-11 19:15:02 +00:00
commit 2d98209ce1
206 changed files with 20957 additions and 0 deletions

40
bootstrap/app.php Normal file
View File

@@ -0,0 +1,40 @@
<?php
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
<<<<<<< HEAD
// bootstrap/app.php
=======
>>>>>>> origin/main
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
<<<<<<< HEAD
->withMiddleware(function (Middleware $middleware) {
// Убедитесь, что HandleCors здесь
$middleware->api(prepend: [
\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
\Illuminate\Http\Middleware\HandleCors::class, // ← ДОЛЖНО БЫТЬ
]);
$middleware->validateCsrfTokens([
'spark-billing-portal/*',
]);
})
->withExceptions(function (Exceptions $exceptions) {
//
})->create();
=======
->withMiddleware(function (Middleware $middleware): void {
//
})
->withExceptions(function (Exceptions $exceptions): void {
//
})->create();
>>>>>>> origin/main