Skip to content

Commit cf388dd

Browse files
committed
Fixed php artisan serve
1 parent cd808a1 commit cf388dd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bootstrap/app.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
$_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
1616
);
1717

18+
$app->bind('path.public', function () {
19+
return dirname(__DIR__);
20+
});
21+
1822
/*
1923
|--------------------------------------------------------------------------
2024
| Bind Important Interfaces

server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
return false;
1919
}
2020

21-
require_once __DIR__.'index.php';
21+
require_once __DIR__.'/index.php';

0 commit comments

Comments
 (0)