Level 75
@abhishek009 For register your api routes use routes/api.php
https://laravel.com/docs/7.x/routing#basic-routing
You can see how api routes work in the RouteServiceProvider and in the Kernel.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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!
Please or to participate in this conversation.