laravel-postman-exporter maintained by essejblack
Description
Export Laravel routes and FormRequest validation rules as a Postman collection.
Author
Last update
2026/06/03 15:47
(dev-main)
License
Downloads
1
Tags
Laravel Postman Exporter
Export Laravel API routes and FormRequest validation rules as a Postman Collection v2.1 JSON file.
Installation
composer require essejblack/laravel-postman-exporter
Publish Config
php artisan vendor:publish --tag=postman-exporter-config
Usage
php artisan postman:export --pretty
The collection will be exported to:
storage/app/postman/api_collection.json
Features
- Export Laravel API routes
- Export route parameters as Postman variables
- Extract FormRequest validation rules
- Generate sample request bodies
- Configure default values from published config
- Bearer token collection auth
- Postman Collection v2.1 output
Config
After publishing the config file, edit:
config/postman-exporter.php
You can configure:
- collection name
- base URL
- auth token variable
- default headers
- route parameter samples
- request body sample values
- excluded routes
- PUT/PATCH behavior
License
MIT