Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ishtiak122's avatar

Laravel view and node.js api combined project configuration

In my required project i have used laravel for front-end and api of node.js for back-end. but i have new to do this. so i need a demo configuration to connect those two. Example: to show data, store data, login i will use node.js api from another pc. Thanks in advance.

0 likes
1 reply
vladshoob's avatar

It is interesting, so you are using backend framework for frontend. Basically using only blade. I would suggest to take some time and switch your frontend to node fully, via express and blade-like view engine.

As a quick solution, you need to make sure your node.js api is available via ip/domain, so you have access to it via web/local. And then in your frontend (laravel??) you can just use that address to make api requests.

1 like

Please or to participate in this conversation.