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

Foks's avatar
Level 15

Best way to make a API only application?

Hello

What would be the best approach if I want to create an app that just an API backend? I'm currently working on a project where I need an API backend to serve my React + Next.js frontend. I believe there was a PR to make it an option to make the Laravel skeleton more API-only? However, I don't seem to be able to find such an option.

0 likes
1 reply
martinbean's avatar
Level 80

@foks There’s nothing you really need to do. Laravel is perfectly capable of being used to create an API-only project. Create a new app, install Passport or Sanctum for token-based authentication, and you’re good to go.

Please or to participate in this conversation.