jonnybarnes.uk/public/index.php

21 lines
543 B
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
2025-03-01 15:00:41 +00:00
use Illuminate\Foundation\Application;
2020-10-17 17:15:06 +01:00
use Illuminate\Http\Request;
2016-05-19 15:01:28 +01:00
define('LARAVEL_START', microtime(true));
2025-03-01 15:00:41 +00:00
// Determine if the application is in maintenance mode...
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
require $maintenance;
2020-10-17 17:15:06 +01:00
}
2016-05-19 15:01:28 +01:00
2025-03-01 15:00:41 +00:00
// Register the Composer autoloader...
require __DIR__.'/../vendor/autoload.php';
2016-05-19 15:01:28 +01:00
2025-03-01 15:00:41 +00:00
// Bootstrap Laravel and handle the request...
/** @var Application $app */
$app = require_once __DIR__.'/../bootstrap/app.php';
2016-05-19 15:01:28 +01:00
2025-03-01 15:00:41 +00:00
$app->handleRequest(Request::capture());