makeController
Create a new Laravel controller class. Specify API or resource type and bind a model as needed.
Instructions
Create a new controller class
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": {
"name": "<name>"
},
"name": "makeController"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api | No | Generate API controller (excludes web methods) | |
| name | Yes | Controller name (e.g. 'PostController') | |
| model | No | Bind to a model for resource controller | |
| resource | No | Generate resource controller with CRUD methods |