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; } file_put_contents(__DIR__.'/../storage/logs/request_trap.log', date('Y-m-d H:i:s')." | ".($_SERVER['REQUEST_URI'] ?? 'cli')." | ".($_SERVER['REMOTE_ADDR'] ?? '-')."\n", FILE_APPEND ); // Register the Composer autoloader... require __DIR__.'/../goldbroker/vendor/autoload.php'; // Bootstrap Laravel and handle the request... /** @var Application $app */ $app = require_once __DIR__.'/../goldbroker/bootstrap/app.php'; $app->handleRequest(Request::capture());