DEV Community

Discussion on: Laravel 8 with React(JS)

Collapse
 
jsandaruwan profile image
J-Sandaruwan

"php artisan optimize" Run that on your project terminal.

Collapse
 
emokores256 profile image
Emokor Steven • Edited

I just did. Cleared cache successfully. I run php artisan serve again but still gives me the same 404. And when i go localhost:8000/home it gave me the error "Mix Manifest does not exist." So I had to include mix.js('resources/js/app.js', 'public/js').react() in my webpack.mix.js file. I also went ahead and included webpack.config.js (though I don' know if this was necessary) and then run npm run dev. It worked finally when i used localhost:8000. I think you need to update the post and include that step.

Thread Thread
 
jsandaruwan profile image
J-Sandaruwan

Ruan again 'npm run dev' on your project terminal.