andreaselia/laravel-api-to-postman
Auto-generate a Postman collection from your Laravel API routes. Supports Postman schema v2.1, configurable output, bearer token or basic auth for protected routes, and optional scaffolding of FormRequest rules for POST/PUT endpoints.
Pros:
RouteServiceProvider) to introspect API endpoints, making it a natural fit for Laravel-based APIs.Cons:
composer require, php artisan vendor:publish, php artisan export:postman)./users/{id} vs. /users/{user}).group_routes) may not work as expected if middleware is dynamically applied.enable_formdata may fail for complex nested FormRequests or custom request payloads.config/api-postman.php:
export_path to a CI/CD-friendly location (e.g., storage/postman/).group_routes if middleware-based organization is desired.validation_format (raw or human) based on team preferences.enable_formdata to true for POST/PUT request bodies.php artisan export:postman to generate the first collection.php artisan export:postman with the appropriate auth flags (e.g., --bearer).postman/ directory (or store as an artifact).PostmanGenerator class to modify collection generation logic.config/api-postman.php.How can I help you explore Laravel packages today?