Looking to hire Laravel developers? Try LaraJobs

laravel-postman-exporter maintained by essejblack

Description
Export Laravel routes and FormRequest validation rules as a Postman collection.
Last update
2026/06/03 15:47 (dev-main)
License
Links
Downloads
1

Comments
comments powered by Disqus

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