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

abhishek009's avatar

How to use Laravel for just API ?

Hi there,

I would like to use Laravel for just API only. But default configuration of laravel loads lots of things like Web routes, sessions, cookies etc.

I want to disable all those features to increate loading time.

Any help would be appreciated.

Thanks!

0 likes
2 replies
RoboRobok's avatar

You probably still want routes with your API.

Please or to participate in this conversation.