Borrowing it
Nothing to install: this file belongs to beel-collab/presets.dev. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/beel-collab/presets.dev/main/release/laravel/native/copilot/.github/instructions/laravel.instructions.mdgit clone --depth 1 https://github.com/beel-collab/presets.devWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/beel-collab/presets.dev/laravel)<a href="https://agentmods.dev/instructions/beel-collab/presets.dev/laravel"><img src="https://agentmods.dev/badge/instructions/beel-collab/presets.dev/laravel/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/beel-collab/presets.dev/laravel"><img src="https://agentmods.dev/badge/instructions/beel-collab/presets.dev/laravel.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00754 | $0.00754 |
| Opus 5.5 | $0.00302 | $0.00302 |
| Sonnet 5.5 | $0.00151 | $0.00151 |
| Haiku 4.5 | $0.00075 | $0.00075 |
Grade A, and why
presets.dev laravel.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Laravel Copilot Instructions: Requests, Policies and Eloquent
Path-specific Copilot instructions for Laravel. They apply through applyTo and leave .github/copilot-instructions.md in place.
Updated for Laravel 13, Nov 2026
Do not upgrade dependencies or the framework version unless the task asks.
Laravel 13 requires PHP 8.3 through 8.5. Read composer.json and stay inside that range. Do not add a package that only supports an older PHP, and do not bump Laravel unless the task asks. Use the app's existing structure: controllers, Form Requests, policies, and jobs.
Project shape
A controller method authorizes, takes a Form Request, and calls an action or a model. Validation does not live in the controller as a hand-rolled if. A Form Request owns the rules and authorize when that is the local pattern. Policies own model authorization. Do not duplicate the same check as a gate, a policy, and an inline if that can drift.
Eloquent
List the fillable or guarded fields. $request->all() passed to create or update is mass assignment. Pass $request->validated().
A list page eager-loads the relations it displays. A loop that queries is an N+1. Paginate. A global scope that hides rows is documented, because it also hides them from jobs.
Jobs and errors
A job that retries is idempotent. The database write uses a unique key or a transaction so a second run does not double-charge. SerializesModels already stores the model identifier and reloads the row when the job runs. Passing the model is the normal shape. Do not rewrite it into a hand-rolled id unless the job must not use that trait.
Exceptions render through the project's handler. Do not dd() or return a stack to the user. Log the context without the password or the token.
Security and tests
Every state-changing route has middleware and a policy. A route missing auth is a review. CSRF stays on for session forms. On Laravel 13 the middleware class is PreventRequestForgery. ValidateCsrfToken and VerifyCsrfToken are deprecated aliases. Do not generate the aliases. Do not disable the middleware for a web route to make a test pass.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today First seen · 64 lines · 754 tokens per session scan A 990bf0ba0507
presets.dev laravel.instructions.md is an instructions file published in the GitHub repository beel-collab/presets.dev (3 stars, last pushed yesterday), licensed MIT. It adds 754 tokens to every session, about $0.0030 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-13.
presets.dev laravel.instructions.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| presets.dev laravel.instructions.mdbeel-collab/presets.dev | Instructions file | 3 | yesterday | MIT | A | 754 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,086 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 280k | 2d ago | MIT | A | 4,325 | Codex, OpenCode |