laravel

Laravel PHP framework with Eloquent ORM and Blade templates. Use for PHP applications.

7 stars

Best use case

laravel is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Laravel PHP framework with Eloquent ORM and Blade templates. Use for PHP applications.

Teams using laravel should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/laravel/SKILL.md --create-dirs "https://raw.githubusercontent.com/G1Joshi/Agent-Skills/main/skills/frameworks/laravel/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/laravel/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How laravel Compares

Feature / AgentlaravelStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Laravel PHP framework with Eloquent ORM and Blade templates. Use for PHP applications.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Laravel

Laravel is a web application framework with expressive, elegant syntax. Laravel 11 (2025) introduces a streamlined skeleton and native WebSocket server (Reverb).

## When to Use

- **Solo Developers / Small Teams**: The ecosystem (Forge, Vapor, Nova) solves devops and admin needs.
- **PHP Shops**: The gold standard for modern PHP.
- **Real-time Apps**: The new Reverb server makes WebSockets a first-class citizen without external Node dependencies.

## Quick Start

```php
// routes/web.php
Route::get('/', function () {
    return view('welcome');
});

// app/Models/User.php
// Elegant Active Record
$users = User::where('active', 1)->get();
```

## Core Concepts

### Slim Skeleton (v11)

Laravel 11 removed `Kernel.php` and Middleware classes. Configuration fits in `bootstrap/app.php`. Example:

```php
->withMiddleware(function (Middleware $middleware) {
    $middleware->validateCsrfTokens(except: ['stripe/*']);
})
```

### Laravel Reverb

First-party WebSocket server written in PHP. Scalable and fast.

### Ecosystem

- **Livewire**: Build dynamic UIs with PHP (similar to Hotwire/Blazor).
- **Filament**: Amazing Admin/Dashboard builder built on Livewire.

## Best Practices (2025)

**Do**:

- **Use Filament**: For admin panels, it is vastly superior to Nova in 2025 for customizability.
- **Use `Pest`**: The new default testing framework. It's beautiful and minimal.
- **Use `cast()` attributes**: Define model casts using the method syntax for clear type conversions.

**Don't**:

- **Don't over-abstract**: Laravel Facades (`Route::`, `DB::`) are fine. Don't create Repository patterns unless you actually need to swap implementations.

## References

- [Laravel Documentation](https://laravel.com/)