'text/javascript', 'css' => 'text/css', 'svg' => 'image/svg+xml', 'png' => 'image/png', 'ico' => 'image/x-icon', 'woff' => 'font/woff', 'woff2' => 'font/woff2']; if ($asset !== false && is_file($asset) && str_starts_with(str_replace('\\', '/', $asset), str_replace('\\', '/', $public).'/') && isset($types[pathinfo($asset, PATHINFO_EXTENSION)])) { header('Content-Type: '.$types[pathinfo($asset, PATHINFO_EXTENSION)]); readfile($asset); exit; } $app = require __DIR__.'/../../bootstrap/app.php'; $app->useStoragePath($root.'/storage'); $app->usePublicPath($root.'/public'); $app->booted(function () use ($root, $database) { if (config('database.default') !== 'pgsql' || config('database.connections.pgsql.database') !== $database) { abort(503); } config(['capital-register.qa_enabled' => true, 'import-legal.qa_enabled' => true, 'import-tariffs.qa_enabled' => true, 'import-dossier.qa_enabled' => true, 'import-bank-support.qa_enabled' => true, 'import-readiness.qa_enabled' => true, 'import-estimates.qa_enabled' => true, 'session.driver' => 'file', 'session.files' => $root.'/storage/framework/sessions', 'session.domain' => null, 'session.secure' => false, 'cache.default' => 'array']); }); $app->handleRequest(Request::capture());