feat: add public/kplus_logger.php entry point for nginx .php handling
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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());
|
||||
Reference in New Issue
Block a user