Laravel 5 change 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:

 $app->bind('path.public', function() {
    return __DIR__;
});

For more detailed explanation click here

Leave a Comment