I am trying to move the public folder to other place. However, I can\'t find the place to modify public_path() variable. Now, the \'public_path()\'
public
public_path()
You can override the public path using ioc container :
What worked for me flawlessly was adding to public/index.php the following three lines:
public/index.php
$app->bind('path.public', function() { return __DIR__; });
For more detailed explanation click here