From cf388ddfa7561892e794ae79c29ff34f414f3d99 Mon Sep 17 00:00:00 2001 From: Julian Prieber <60265788+JulianPrieber@users.noreply.github.com> Date: Sun, 27 Aug 2023 15:54:52 +0200 Subject: [PATCH] Fixed php artisan serve --- bootstrap/app.php | 4 ++++ server.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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';