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

EasierArt's avatar

Do I need to create an API in Laravel in order for it to communicate with a front end framework like vue or react?

I just finished a tutorial on creating a CRUD app in Laravel, and I have done a few tutorials covering vue and react, but I haven't done a tutorial yet which combines both the front end and backend together. Is it necessary to create an API to connect the front end and backend?

0 likes
2 replies
DhPandya's avatar
DhPandya
Best Answer
Level 12

@easierart It is totally up to your requirements. If you're only building a frontend web application then you can use inertiajs. Here you can use your frontend along with the power of the Laravel, but if you're building application for mobile devices too then creating API is advisable.

3 likes
EasierArt's avatar

My end goal is to create a text-based MMORPG game for the browser. I don't have any plans yet to create a separate native mobile app besides working in mobile browsers. So, anything complex would require using an API?

Please or to participate in this conversation.