- 添加项目必要的配置文件(例如 `.env.example`、`.gitignore` 等) - 配置 Docker 环境相关文件(如 `.dockerignore`) - 引入默认的 `composer.json` 依赖项和脚本配置 - 添加基础数据库迁移文件 - 配置 Laravel 默认的资源文件夹和初始内容
21 lines
543 B
PHP
21 lines
543 B
PHP
<?php
|
|
|
|
use Illuminate\Foundation\Application;
|
|
use Illuminate\Http\Request;
|
|
|
|
define('LARAVEL_START', microtime(true));
|
|
|
|
// Determine if the application is in maintenance mode...
|
|
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
|
|
require $maintenance;
|
|
}
|
|
|
|
// Register the Composer autoloader...
|
|
require __DIR__.'/../vendor/autoload.php';
|
|
|
|
// Bootstrap Laravel and handle the request...
|
|
/** @var Application $app */
|
|
$app = require_once __DIR__.'/../bootstrap/app.php';
|
|
|
|
$app->handleRequest(Request::capture());
|