From 710a721305a0fc407615a97fbeba0099e6650621 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Thu, 14 Dec 2017 10:56:30 -0600 Subject: [PATCH] Made some changes to facilitate moving the public/ folder --- bootstrap/app.php | 4 ++++ public/index.php | 11 ++++++---- public/index_sharedhosting.php | 38 ---------------------------------- 3 files changed, 11 insertions(+), 42 deletions(-) delete mode 100644 public/index_sharedhosting.php diff --git a/bootstrap/app.php b/bootstrap/app.php index 7103cc32..17748d90 100755 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -19,6 +19,10 @@ $app = new Illuminate\Foundation\Application( realpath(__DIR__.'/../') ); +$app->bind('path.public', function () { + return __DIR__.'/../public'; +}); + #$app->loadEnvironmentFrom('.env.php'); $app->useDatabasePath(realpath(__DIR__.'/../app/Database')); diff --git a/public/index.php b/public/index.php index e3916794..b0969b4d 100755 --- a/public/index.php +++ b/public/index.php @@ -1,10 +1,13 @@ + * phpVMS + */ + +/** + * If you move the public folder, or all the files in the public + * folder, be sure to go into the bootstrap/app.php file, and change + * the 'path.public' path to where it lives. */ require __DIR__.'/../bootstrap/autoload.php'; diff --git a/public/index_sharedhosting.php b/public/index_sharedhosting.php deleted file mode 100644 index 20a9dca4..00000000 --- a/public/index_sharedhosting.php +++ /dev/null @@ -1,38 +0,0 @@ -make(Illuminate\Contracts\Http\Kernel::class); - -$response = $kernel->handle( - $request = Illuminate\Http\Request::capture() -); - -$response->send(); - -$kernel->terminate($request, $response);