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

octabevi's avatar

Laravel + JWT + api generation + Swagger

Good morning ! We are designing an application, we need to use swagger to document the endpoints and generate the api with JWT for these endpoints.

Any recommendation or guide on this?

Or alternatives?

0 likes
2 replies
enoch91's avatar

If you're open to alternatives, consider using OpenAPI (formerly Swagger). This package provides an OpenAPI implementation and is well-integrated with Laravel.

Whichever approach you choose, documenting your API with a tool like Swagger or OpenAPI is a great practice for building maintainable and understandable APIs.

Please or to participate in this conversation.