Laravel patterns for mass assignment, raw queries, Blade escaping, uploads, queued jobs, and 11 to 13 upgrades. Load before any edit in a Laravel app, however small, and for Laravel questions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Laravel Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/ku5ic-laravel-patterns)
---
name: laravel-patterns
description: Laravel patterns for mass assignment, raw queries, Blade escaping, uploads, queued jobs, and 11 to 13 upgrades. Load before any edit in a Laravel app, however small, and for Laravel questions.
---
# Laravel patterns
Default assumption: Laravel 13 on PHP 8.3 to 8.5, per the Laravel release notes. 13 gets bug fixes to Q3 2027 and security fixes to 2028-03-17, 12 security fixes only to 2027-02-24, and 11 and earlier none.
A row applies when `laravel/framework` in `composer.lock` is at least the row's version.
PHP itself is php-patterns.
## Reference files
Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.
| Before | Read |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------- |
| Writing Laravel code, or raising the Laravel version | [reference/upgrades.md](reference/upgrades.md) |
| Writing, changing, or reviewing Laravel code, Blade, or config | [reference/anti-patterns.md](reference/anti-patterns.md) |
| Writing `bootstrap/app.php`, a service provider, a route, a form request, authorization, a query loop, a schedule, an event, `defer()`, `Concurrency`, Sanctum auth, or rotating `APP_KEY` | [reference/practices.md](reference/practices.md) |
| Configuring Pint, Larastan, or psalm-plugin-laravel | [reference/tooling.md](reference/tooling.md) |
| Writing or changing a file in `app/Models/` | [reference/models.md](reference/models.md) |
| Writing or changing a file in `app/Jobs/` | [reference/jobs.md](reference/jobs.md) |