ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/ivangdavila/laravel
Or

What 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 Model definitions to ensure $fillable fields 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

  1. "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?"
  2. "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?"
  3. "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 your AppServiceProvider during 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 RefreshDatabase tests) cover the logic suggested by the agent. Always prefer findOrFail() over find() to avoid silent null-reference errors in your business logic flow.

Metadata

Stars2102
Views0
Updated2026-03-06
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-ivangdavila-laravel": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#laravel#php#web-development#backend#security
Safety Score: 4/5

Flags: code-execution