coolify/public/index.php

23 lines
569 B
PHP
Raw Normal View History

2023-03-17 14:33:48 +00:00
<?php
2025-03-29 15:20:45 +00:00
declare(strict_types=1);
2025-11-30 15:50:04 +00:00
use Illuminate\Foundation\Application;
2023-03-17 14:33:48 +00:00
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
2025-11-30 15:50:04 +00:00
// Determine if the application is in maintenance mode...
2024-06-10 20:43:34 +00:00
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
2023-03-17 14:33:48 +00:00
require $maintenance;
}
2025-11-30 15:50:04 +00:00
// Register the Composer autoloader...
2024-06-10 20:43:34 +00:00
require __DIR__.'/../vendor/autoload.php';
2023-03-17 14:33:48 +00:00
2025-11-30 15:50:04 +00:00
// Bootstrap Laravel and handle the request...
/** @var Application $app */
2024-06-10 20:43:34 +00:00
$app = require_once __DIR__.'/../bootstrap/app.php';
2023-03-17 14:33:48 +00:00
2025-11-30 15:50:04 +00:00
$app->handleRequest(Request::capture());