forked from akaunting/akaunting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
30 lines (22 loc) · 708 Bytes
/
index.php
File metadata and controls
30 lines (22 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
/**
* @package Akaunting
* @copyright 2017-2023 Akaunting. All rights reserved.
* @license BSL; see LICENSE.txt
* @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';
// Load the app
$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()
)->send();
$kernel->terminate($request, $response);