generate_trait
Generate reusable PHP traits for Laravel models to implement common behaviors: slug generation, tenant scoping, sorting, status fields, UUID keys, caching, and media handling.
Instructions
Generate a reusable PHP trait for Laravel models (HasSlug, HasTenant, Sortable, HasStatus, HasUuid, Cachable, HasMedia).
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": {
"traitName": "<traitName>"
},
"name": "generate_trait"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| traitName | Yes | ||
| description | No |