title: how to host a laravel rest api and angular 5 application on the same domain?
body: <p>i created an angular 5 front end application which needs a backend rest api to deal with the database and i created this backend api with laravel and i am serving each of them on a different port as a separate domain but i need to host both of them on the same domain so that angular controls the routes and there are separate routes for the backend for example www.mydomain.com/anything is for the angular application and www.mydomain.com/api/anything is for the laravel backend. so is there a way to do this and if there is could you please mention it or post a link for a tutorial for it?</p>