From 3d43864bbd0f1a9e07393a028735076a05816e72 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Fri, 15 Dec 2017 19:31:32 -0600 Subject: [PATCH] Make path to phpvms easier to change --- public/index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/index.php b/public/index.php index b0969b4d..8b803488 100755 --- a/public/index.php +++ b/public/index.php @@ -10,12 +10,14 @@ * the 'path.public' path to where it lives. */ -require __DIR__.'/../bootstrap/autoload.php'; +$path_to_phpvms_folder = __DIR__.'/../'; + +require $path_to_phpvms_folder.'/bootstrap/autoload.php'; /** * @var $app Illuminate\Foundation\Application */ -$app = require_once __DIR__.'/../bootstrap/app.php'; +$app = require_once $path_to_phpvms_folder.'/bootstrap/app.php'; $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);