Level 17
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.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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
Please or to participate in this conversation.