0

I want run my Angular front-end client within Laravale index.html. I have mange to set up and build both projects. When I open Laravel Client at port 8000 it says it can not find any of the .js files (404 error). I read something about base href to be set properly but I can not figure it out.

Any ideas ?

project

2
  • 2
    Follow this tutorial Commented Apr 18, 2019 at 10:00
  • thanks that work. Can you put it as a answer I be happy to accept it :) Commented Apr 18, 2019 at 10:19

1 Answer 1

1

Create a new project with Angular Cli in some directory of Laravel project and then build the frontend project and copy the “dist” files in the public directory and in Laravel routes “/” render the index.html and that's it.
For more info you can follow this tutorial. I hope it would help you.

Sign up to request clarification or add additional context in comments.

1 Comment

thanks perfect solution took me a while to understand the last command cause it was messy with the ";". but it worked

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.