Setting a different location for public_path

Submitted by codelust - 10 years ago

Sometimes, you have differences between your dev set-up and production set-up that requires you to be able to set a different value for public_path. In your bindings.php file, just add the following code and you will be good.

if (\App::environment('production'))
{
    \App::bind('path.public', function()
    {
        return '/path/to/the/different/location';
    });
}