Skip to content

Instantly share code, notes, and snippets.

@danilosantosdev
Created October 25, 2017 05:05
Show Gist options
  • Save danilosantosdev/974a7b62054afb3b30fac9367df4ad9f to your computer and use it in GitHub Desktop.
Save danilosantosdev/974a7b62054afb3b30fac9367df4ad9f to your computer and use it in GitHub Desktop.
Code to change "path.public" to "public_html" on Laravel 5.4
public function register()
{
if (\App::environment('production')) {
$this->app->bind('path.public', function() {
return base_path().'/../public_html';
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment