The Mix manifest does not exist when it does exist

后端 未结 10 1890
醉酒成梦
醉酒成梦 2020-12-23 20:56

For my admin panel I extract all the assets including the manifest-json.js to mix.setPublicPath(path.normalize(\'public/backend/\')).

All t

10条回答
  •  心在旅途
    2020-12-23 21:25

    I had same exception after deployment laravel project to server. It was working perfectly fine on localhost but after lot of research I found a solution. If you encounter this exception on server then you have to bind your public path to public_html

    Just go to under the app/Providers, you will find your AppServiceProvider file and inside boot() method make the binding as below.

       $this->app->bind('path.public', function() {
            return base_path().'/../public_html';
        });
    

提交回复
热议问题