Laravel
Build robust Laravel apps avoiding Eloquent traps, queue failures, and auth pitfalls.
Why use this skill?
Master Laravel with OpenClaw. Avoid N+1 queries, secure your auth, and optimize queue workers with expert-guided architectural insights.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ivangdavila/laravelWhat This Skill Does
The Laravel skill for OpenClaw acts as an expert-level architectural consultant for your Laravel ecosystem. It is designed to navigate the complexities of modern PHP development by enforcing best practices that prevent common production bugs. It specializes in optimizing database interactions, securing authentication workflows, and managing background processing. By integrating this skill, your AI agent can diagnose N+1 query issues, enforce security-minded mass assignment configurations, and ensure your queue workers are resilient to stale data. It transforms raw codebases into robust, scalable applications by strictly adhering to community-vetted patterns like proper eager loading, safe environment variable management, and dependency injection standards.
Installation
To integrate this skill into your OpenClaw agent, execute the following command in your terminal:
clawhub install openclaw/skills/skills/ivangdavila/laravel
Use Cases
- Database Optimization: Automatically detect and refactor loops causing N+1 queries by recommending eager loading strategies.
- Authentication Hardening: Validate your usage of Laravel Sanctum, policies, and gate definitions to ensure authorized access only.
- Queue Reliability: Troubleshoot stale model serialization in background jobs and set up robust retry logic.
- Security Auditing: Review your
Modeldefinitions to ensure$fillablefields prevent mass assignment vulnerabilities, and inspect Blade templates to prevent XSS. - Deployment Readiness: Verify your app for common failure points like using
env()outside config files or using anonymous controller closures that prevent route caching.
Example Prompts
- "I'm getting high latency on my dashboard page; can you analyze my controller and model to check for N+1 query issues and suggest an eager loading fix?"
- "Review this Job class for me: I'm passing a User model into the constructor. Will the background worker get the latest data, or will it use a stale object?"
- "I am implementing a new API endpoint. What is the most secure way to structure my middleware, validation, and policy checks using Laravel Sanctum?"
Tips & Limitations
- Always use
preventLazyLoading(): Enable this in yourAppServiceProviderduring local development to catch performance bottlenecks before they hit production. - Strict Type Enforcement: While the agent can guide your architecture, ensure your codebase maintains strict type hinting for the best results.
- Limitations: The agent analyzes code via static analysis and pattern matching. It does not execute your code in real-time, so ensure your unit tests (especially
RefreshDatabasetests) cover the logic suggested by the agent. Always preferfindOrFail()overfind()to avoid silent null-reference errors in your business logic flow.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ivangdavila-laravel": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: code-execution
Related Skills
Animations
Create performant web animations with proper accessibility and timing.
Arduino
Develop Arduino projects avoiding common wiring, power, and code pitfalls.
Bulgarian
Write Bulgarian that sounds human. Not formal, not robotic, not AI-generated.
Arabic
Write Arabic that sounds human. Not formal, not robotic, not AI-generated.
Assistant
Manage tasks, communications, and scheduling with proactive and organized support.