Laravel for Openclaw

Build high-performance, secure Laravel applications by adhering to expert-level best practices for Eloquent, queues, and security.

ivangdavila
v1.0.1
Feb 15, 2026
4
2.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install laravel

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install laravel using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Laravel?

This skill provides a comprehensive set of rules and guidelines for developing enterprise-grade applications with the Laravel framework. By utilizing these Openclaw Skills, developers can ensure their AI agents follow strict protocols for database management, background processing, and secure authentication. The primary focus is on avoiding common architectural mistakes that lead to performance bottlenecks and security vulnerabilities, such as N+1 query issues and mass assignment attacks.

Laravel Use Cases

  • Building scalable web applications with modern PHP best practices using Openclaw Skills.
  • Preventing N+1 query performance issues in complex Eloquent relationship mappings.
  • Implementing secure authentication flows using Laravel Sanctum and Gates.
  • Designing reliable background job systems with proper serialization and retry logic.
  • Creating custom Artisan commands and scheduled tasks for system automation.

How Laravel Works

  1. The skill identifies the project environment and ensures that PHP and Composer dependencies are correctly configured.
  2. It enforces the use of eager loading via with() to prevent lazy loading performance degradation in loops.
  3. It audits model configurations to ensure $fillable whitelists are used instead of dangerous guarded arrays.
  4. It validates that sensitive environment variables are accessed only via configuration files to maintain cache compatibility.
  5. It guides the developer through implementing fail-safe database transactions and route model binding overrides.

Laravel Setup

# Ensure your environment meets the binary requirements
php --version
composer --version

# Enable the Laravel skill within your Openclaw Skills environment
# This will allow the agent to reference eloquent.md, auth.md, and other critical references.

Laravel Data Schema & Taxonomy

Topic Documentation File Core Concepts Covered
Eloquent eloquent.md Eager loading, N+1 prevention, accessors, and observers
Controllers controllers.md Validation logic, middleware ordering, and dependency injection
Queues queues.md Job serialization, retry strategies, and handling failed jobs
Auth auth.md Guards, policies, Sanctum tokens, and Gate logic
Templating blade.md XSS escaping, component slots, and secure rendering
CLI artisan.md Custom commands, scheduling, and Laravel Tinker usage

Laravel Advanced Features

  • Automated N+1 query detection through development-only preventLazyLoading() configurations.
  • Enhanced security audits for Blade templates to prevent XSS via unescaped output.
  • Specialized handling for Job properties to ensure models are re-fetched accurately during processing.
  • Support for transaction-safe operations using DB::transaction() with proper exception handling.
  • Advanced route optimization strategies compatible with route caching by avoiding closures in web routes.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*