Search code examples
phplaravellumenlaravel-9

how to make laravel 9 api-only?


Is there a way to make laravel api-only?(for optimized speed) I wanted to use lumen but it's not listed in the laravel docs anymore. Is there anyway to achive this?


Solution

  • Well as indicated by @D1__1, there exist Lumen 9. If you still considers the option of using laravel 9, then I will suggest doing the following:

    1. Using the api routes only
    2. Implementing JWT https://laravel-jwt-auth.readthedocs.io/en/latest/laravel-installation/
    3. [Optional] Change the exception handler to output errors as not expose details of your applications.