resource/public/index.php
2026-01-21 19:53:48 +08:00

43 lines
815 B
PHP
Executable File

<?php
use Illuminate\Foundation\Application;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
function t($xData)
{
_t($xData);
}
function tt($xData)
{
_t($xData, 1);
}
function _t($aData, $iType = 0)
{
if (env("is_loc") == true) {
echo "<pre>";
var_dump($aData);
if ($iType == 1) {
exit;
}
}
}
// 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());