#1 - project skeleton
This commit is contained in:
24
public/index.php
Normal file
24
public/index.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use Illuminate\Contracts\Http\Kernel;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
define("LARAVEL_START", microtime(true));
|
||||
|
||||
if (file_exists(__DIR__ . "/../storage/framework/maintenance.php")) {
|
||||
require __DIR__ . "/../storage/framework/maintenance.php";
|
||||
}
|
||||
|
||||
require __DIR__ . "/../vendor/autoload.php";
|
||||
|
||||
$app = require_once __DIR__ . "/../bootstrap/app.php";
|
||||
|
||||
$kernel = $app->make(Kernel::class);
|
||||
|
||||
$response = $kernel->handle(
|
||||
$request = Request::capture(),
|
||||
)->send();
|
||||
|
||||
$kernel->terminate($request, $response);
|
Reference in New Issue
Block a user