Skip to content

Commit eee64d5

Browse files
committed
Set the public path for users who can’t use public as a directory (shared hosting)
1 parent b450ef3 commit eee64d5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

public/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636

3737
$app = require_once __DIR__.'/../bootstrap/app.php';
3838

39+
// set the public path to this directory
40+
$app->bind('path.public', function() {
41+
return __DIR__;
42+
});
43+
3944
/*
4045
|--------------------------------------------------------------------------
4146
| Run The Application

0 commit comments

Comments
 (0)