apiGenerator
Generates complete REST API for a Laravel entity, including migration, model, controller, routes, and tests.
Instructions
Generate REST API for a Laravel entity: migration, model, API controller, routes, tests
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"entity": "<entity>"
},
"name": "apiGenerator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | Protect routes with auth:sanctum middleware | |
| entity | Yes | Entity name in singular (e.g. 'Post', 'Category') | |
| fields | No | Comma-separated field definitions (e.g. 'title:string,content:text') |