Add an index page to the root pointing to the bootstrap dir
This commit is contained in:
22
index.php
Executable file
22
index.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* phpVMS
|
||||
*/
|
||||
|
||||
$path_to_phpvms_folder = __DIR__;
|
||||
|
||||
require $path_to_phpvms_folder.'/bootstrap/autoload.php';
|
||||
|
||||
$app = require_once $path_to_phpvms_folder.'/bootstrap/app.php';
|
||||
$app->setPublicPath(__DIR__ . '/public');
|
||||
|
||||
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
|
||||
|
||||
$response = $kernel->handle(
|
||||
$request = Illuminate\Http\Request::capture()
|
||||
);
|
||||
|
||||
$response->send();
|
||||
|
||||
$kernel->terminate($request, $response);
|
||||
Reference in New Issue
Block a user