Laravel Models
This skill generates Laravel model classes, streamlining database interactions for your PHP applications and accelerating development.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add laravel-models npx -- -y @trustedskills/laravel-models
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"laravel-models": {
"command": "npx",
"args": [
"-y",
"@trustedskills/laravel-models"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enables AI agents to interact with Laravel application models, allowing them to query, create, update, and delete database records directly. It bridges the gap between natural language requests and backend data persistence within a PHP ecosystem.
When to use it
- You need an agent to fetch specific user data or inventory levels from a Laravel database.
- Your workflow requires automated creation of new records based on external triggers.
- You want the agent to handle complex Eloquent relationships, such as retrieving orders with associated line items.
- You are building a backend tool that needs to modify state without manual API intervention.
Key capabilities
- Execute standard CRUD operations (Create, Read, Update, Delete) on Laravel models.
- Query databases using Eloquent ORM syntax.
- Handle relationships between different model entities.
- Perform data validation and transformation before saving changes.
Example prompts
- "Find all users who have not logged in for the last 30 days."
- "Create a new product entry with the name 'Widget A', price $25, and stock of 100."
- "Update the status of order #12345 to 'shipped' and notify the customer."
Tips & gotchas
Ensure your Laravel environment is properly configured with the necessary database credentials before deploying agents that write data. Be cautious when granting agents permissions to delete records, as accidental data loss can be irreversible without backups.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.