Skip to content

Instantly share code, notes, and snippets.

@sikrew
Last active November 23, 2018 12:29
Show Gist options
  • Save sikrew/81ad834a435260f00acd46da6c3cb186 to your computer and use it in GitHub Desktop.
Save sikrew/81ad834a435260f00acd46da6c3cb186 to your computer and use it in GitHub Desktop.
Are you getting the error: "The Mix manifest does not exist" when the file exists? Try rebinding the public path.
/**
| Upon getting this error on a production environment in which you cant install `npm` to run
| `run npm dev` or `run npm production` to compile the assets, you can add this to the `boot()` method of your `AppServiceProvider.php`
| to bind a new path to the existing manifest of your application.
*/
//...
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//...
$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