API Docs & Postman
Your API is documented the moment it exists, with Scramble for interactive OpenAPI docs and Postman collections for your team.
Scramble: instant OpenAPI docs
The generated controllers, requests and resources are written so Scramble can analyze them with no annotations and no manual setup:
composer require dedoc/scramble --dev
php artisan serveOpen http://localhost:8000/docs/api:
From VS Code, the extension's Open API Docs button covers the whole trip in one click, including starting the server if none is running and offering to install Scramble if it is missing.

What you get automatically:
- Interactive Swagger UI: test endpoints from the browser with Send API Request
- Auto-detected schemas:
PostRequest,PostResource… inferred from FormRequest rules and Resource structure - Validation rules as constraints:
required|string|max:255becomes a required string with<= 255 charactersin the docs - Request/response examples: sample JSON bodies generated for you
- Grouped endpoints: each entity gets its own section with all CRUD operations

| URL | Description |
|---|---|
/docs/api | Interactive Swagger UI |
/docs/api.json | Raw OpenAPI 3.x JSON specification |
TIP
Scramble is a dev dependency, like the generator itself. None of it ships to production.
Postman collection
php artisan make:fullapi Post --fields="title:string" --postmanExports postman_collection.json at the project root, following the Postman v2.1 schema:
- A folder per entity
- Pre-configured List, Create, Show, Update and Delete requests
- Sample request bodies with appropriate field values
- A
base_urlvariable (defaults tohttp://localhost:8000/api)
Import it into Postman and hand it to your frontend team the same morning.
