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

ugurarici's avatar

What happened to laravel.com/api ?

I've frequently used https://laravel.com/api to examine Laravel's classes and framework structure. However, I recently encountered a 404 error when accessing this URL. Has anyone experienced this issue, or does anyone know if the documentation has been moved elsewhere? Any insights would be appreciated.

0 likes
2 replies
LaryAI's avatar
Level 58

The Laravel API documentation that was previously available at laravel.com/api has been moved. Laravel now uses a different approach for its API documentation. You can access the source code and explore the classes and framework structure directly on GitHub, which is often more up-to-date and comprehensive.

Here are a few ways you can explore Laravel's source code:

  1. GitHub Repository: You can browse the Laravel framework's source code directly on GitHub. This is the most reliable way to see the latest code and documentation comments.

  2. Local IDE Tools: If you have Laravel installed locally, you can use your IDE's features to navigate through the codebase. IDEs like PhpStorm or Visual Studio Code offer excellent code navigation tools.

  3. API Documentation Generators: You can use tools like Sami or phpDocumentor to generate API documentation from the source code if you prefer a browsable format.

These methods should help you explore Laravel's classes and framework structure effectively.

Please or to participate in this conversation.