feat: add public/kplus_logger.php entry point for nginx .php handling

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hashbro
2026-09-16 05:39:19 +08:00
parent 7f2fc33449
commit 2b0c67ad9c
+17
View File
@@ -0,0 +1,17 @@
<?php
// kplus_logger.php — 直接入口, 绕过 nginx 对 .php 文件的 404
// 复制 index.php 的逻辑, 让 Laravel 路由正常处理 /kplus_logger.php
define('LARAVEL_START', microtime(true));
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
require $maintenance;
}
require __DIR__.'/../vendor/autoload.php';
/** @var \Illuminate\Foundation\Application $app */
$app = require_once __DIR__.'/../bootstrap/app.php';
use Illuminate\Http\Request;
$app->handleRequest(Request::capture());