# laravel

Directs coding agents to follow your project backend standards across Laravel 13 and older releases instead of relying on default framework scaffolding.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 143 installs · ★ 5 repo stars
- Author: ulpi-io
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ulpi-io/skills/tree/HEAD/laravel/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/ulpi-io-laravel

## What it does

This skill acts as an architecture router. It first checks `references/stack.md` alongside `composer.json` and `composer.lock` to lock in the active major framework release. The agent then reads only the specific reference file needed for the task, such as routing, queue workers, caching, or MCP server integration.

The rules prevent business logic from leaking into HTTP handlers. Controllers must only validate via Form Requests, delegate to Actions, and return API Resources. Returning raw Eloquent instances, setting `$guarded = []`, or dispatching queue workers without Horizon is explicitly forbidden.

Applications are expected to boot `Model::shouldBeStrict()` inside `AppServiceProvider`. When dealing with Filament administrative interfaces, this skill steps aside in favor of `laravel-filament`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill laravel -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/laravel/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/laravel/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill laravel -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/laravel/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill laravel -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/laravel/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ulpi-io/skills laravel
```

2. **Manually: put the files in place**
- File: `.github/skills/laravel/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill laravel -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ulpi-io/skills --path laravel
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/laravel/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill laravel -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ulpi-io/skills/tree/HEAD/laravel/SKILL.md

## When to use it
- refactor controller business logic into dedicated Action classes
- move inline validation rules to Form Request objects
- configure background queue execution through Horizon
- enable strict Eloquent mode with explicit `$fillable` fields

## Example prompts
- Add an order checkout API endpoint using a Form Request and an Action
- Generate a background queue job configured for Horizon
- Set up an MCP server entry point according to our stack references

## Similar
- [laravel-patterns](https://affpapa.org/en/nevibecode/skills/laravel-patterns.md) — skill · 6900 installs
- [laravel-expert](https://affpapa.org/en/nevibecode/skills/laravel-expert.md) — skill · 449 installs
- [laravel-best-practices](https://affpapa.org/en/nevibecode/skills/laravel-best-practices.md) — skill · 2400 installs
- [laravel-specialist](https://affpapa.org/en/nevibecode/agents/voltagent-laravel-specialist.md) — subagent · ★ 6505 repo stars
- [laravel-database-optimization](https://affpapa.org/en/nevibecode/skills/laravel-database-optimization.md) — skill · 1100 installs
- [laravel-development](https://affpapa.org/en/nevibecode/skills/laravel-development.md) — skill · 965 installs

## Other versions with the same name
- [laravel · mindrally](https://affpapa.org/en/nevibecode/skills/laravel.md) — 876 installs

From the same set: [ulpi-io/skills](https://affpapa.org/en/nevibecode/by/ulpi-io/skills.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
