updated index and autoload

This commit is contained in:
Denis Duliçi
2022-07-10 00:19:28 +03:00
parent 7d62186292
commit 7921324fb8
2 changed files with 12 additions and 9 deletions

View File

@ -7,19 +7,24 @@
* @link https://akaunting.com
*/
define('LARAVEL_START', microtime(true));
// Check for maintenance
if (file_exists($maintenance = __DIR__ . '/storage/framework/maintenance.php')) {
require $maintenance;
}
// Register the auto-loader
require(__DIR__ . '/bootstrap/autoload.php');
require __DIR__ . '/bootstrap/autoload.php';
// Load the app
$app = require_once(__DIR__ . '/bootstrap/app.php');
$app = require_once __DIR__ . '/bootstrap/app.php';
// Run the app
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
)->send();
$kernel->terminate($request, $response);