diff --git a/bootstrap/app.php b/bootstrap/app.php index 037e17d..d940451 100755 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -15,6 +15,10 @@ $app = new Illuminate\Foundation\Application( $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) ); +$app->bind('path.public', function () { + return dirname(__DIR__); +}); + /* |-------------------------------------------------------------------------- | Bind Important Interfaces diff --git a/server.php b/server.php index a2a68f3..f08aaac 100755 --- a/server.php +++ b/server.php @@ -18,4 +18,4 @@ if ($uri !== '/' && file_exists(__DIR__.$uri)) { return false; } -require_once __DIR__.'index.php'; +require_once __DIR__.'/index.php';