2017-12-17 15:03:19 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
2019-05-11 07:40:07 +08:00
|
|
|
* phpVMS (root folder)
|
2017-12-17 15:03:19 +08:00
|
|
|
*/
|
|
|
|
$path_to_phpvms_folder = __DIR__;
|
|
|
|
|
|
|
|
require $path_to_phpvms_folder.'/bootstrap/autoload.php';
|
|
|
|
|
|
|
|
$app = require_once $path_to_phpvms_folder.'/bootstrap/app.php';
|
2017-12-18 06:58:53 +08:00
|
|
|
|
2018-08-27 00:40:04 +08:00
|
|
|
$app->setPublicPath(__DIR__.'/public');
|
2019-10-24 00:01:31 +08:00
|
|
|
$app->setPublicUrlPath(env('APP_PUBLIC_URL', '/'));
|
|
|
|
|
|
|
|
// Uncomment this line if you're having issues with the redirecting not working properly
|
|
|
|
//$app->setPublicUrlPath(env('APP_PUBLIC_URL', '/public'));
|
2017-12-17 15:03:19 +08:00
|
|
|
|
|
|
|
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
|
|
|
|
|
|
|
$response = $kernel->handle(
|
|
|
|
$request = Illuminate\Http\Request::capture()
|
|
|
|
);
|
|
|
|
|
|
|
|
$response->send();
|
|
|
|
|
|
|
|
$kernel->terminate($request, $response);
|