<?php

/**
 * Use this file ONLY if you copied the contents of laravel_app/public/*
 * directly into public_html (Method 2 in DEPLOY_INSTRUCTIONS.txt).
 * Rename this file to "index.php" and let it REPLACE the one that came
 * from the public/ folder.
 *
 * It assumes the "laravel_app" folder sits one level above public_html,
 * e.g. /home/yourcpaneluser/laravel_app
 */

use Illuminate\Foundation\Application;
use Illuminate\Http\Request;

define('LARAVEL_START', microtime(true));

$appBase = __DIR__ . '/../laravel_app';

if (file_exists($maintenance = $appBase . '/storage/framework/maintenance.php')) {
    require $maintenance;
}

require $appBase . '/vendor/autoload.php';

/** @var Application $app */
$app = require_once $appBase . '/bootstrap/app.php';

$app->handleRequest(Request::capture());
