From eee64d5509325f96204aa5719f7139ba8c3e6b51 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 1 Sep 2016 12:53:38 -0700 Subject: [PATCH] =?UTF-8?q?Set=20the=20public=20path=20for=20users=20who?= =?UTF-8?q?=20can=E2=80=99t=20use=20public=20as=20a=20directory=20(shared?= =?UTF-8?q?=20hosting)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/index.php b/public/index.php index c2d9ddf00..01ea454da 100644 --- a/public/index.php +++ b/public/index.php @@ -36,6 +36,11 @@ include '../c3.php'; $app = require_once __DIR__.'/../bootstrap/app.php'; +// set the public path to this directory +$app->bind('path.public', function() { + return __DIR__; +}); + /* |-------------------------------------------------------------------------- | Run The Application