presets.dev: Instructions file for GitHub Copilot

release/laravel/native/copilot/.github/instructions/laravel.instructions.md

presets.dev laravel.instructions.md is an instructions file for GitHub Copilot from beel-collab/presets.dev. It costs 754 tokens per session, scanned A, original, MIT.

A set of coding instructions for Laravel projects. Laravel is a PHP web framework, and these instructions cover controllers, input validation, permissions, database models, background jobs, errors, security, and tests.

In plain words
What is it for?
Use it when changing Laravel routes, controllers, form requests, policies, Eloquent models, jobs, security checks, or tests.
Why use it?
It helps an AI coding assistant follow the project's PHP and Laravel versions and avoid unsafe mass assignment, duplicated authorization, and inefficient database queries.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions AGENTS.md.

This is beel-collab/presets.dev's own configuration. It tells GitHub Copilot how to work on presets.dev itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything presets.dev configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/beel-collab/presets.dev/main/release/laravel/native/copilot/.github/instructions/laravel.instructions.md
Clone the repo
git clone --depth 1 https://github.com/beel-collab/presets.dev

Made for: GitHub Copilot.

Wrote 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.

agentmods badge for presets.dev laravel.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/beel-collab/presets.dev/laravel/github.svg)](https://agentmods.dev/instructions/beel-collab/presets.dev/laravel)
Your own site
<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.

agentmods 80×15 button for presets.dev laravel.instructions.md

Your own site · 80×15
<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>
Per session 754 This file is loaded in full into every session.
When invoked 754 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured today against content hash 990bf0ba0507, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

release/laravel/native/copilot/.github/instructions/laravel.instructions.md · 64 lines

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.

Read the full file on GitHub · 64 lines

Changes

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.

  1. today First seen · 64 lines · 754 tokens per session scan A 990bf0ba0507

Subscribe to this mod's changes

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.

Related

presets.dev laravel.instructions.md compared with instructions from other repositories

presets.dev laravel.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
presets.dev laravel.instructions.mdbeel-collab/presets.devInstructions file3yesterdayMITA754GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file280k2d agoMITA4,325Codex, OpenCode