Last active
November 23, 2018 12:29
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
| 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