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

SirMrDany's avatar

Laravel + Vue + Inertia with Rest Api

Hi,

I want to make a website that has it's admin panel with inertia and vue, but I want laravel to also have a REST API to handle incoming data from other devices with jwt's. How do I best do that?

Regards Dany

0 likes
1 reply
adityakunhare's avatar

For Rest API you have to create separate routes and controllers as well. If you are rendering the components using

Inertia::render();

Or create another laravel project for APIs using same database.

Please or to participate in this conversation.