It is enough to put front on domain and back on subdomain. No need to purchase another domain.
Is there a very good reason why you are complicating stuff for yourself?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi All
I am creating my first REST API with Lumen, to use as a backend for a VUE.JS application.
I was wondering what the general consensus is with hosting an api. E.G
If my front end domain is myapp.com would I host my api on a different server and use a subdomain such as api.myapp.com. Or should I separate the backend completely and run it from myappapi.com ?
At the moment, I only have experience in Laravel, which both the front end and backend are once application sitting on the same server.
Any advice for a novice would be appreciated.
Thanks
M
Please or to participate in this conversation.