Laravel Cursor Rules Starter (Free)

Three Laravel rules that fix the mistakes agents make most often, ready to drop into .cursor/rules/, plus a linter.

Laravel Cursor Rules Starter (Free) cover

What it is

3 Cursor project rules for Laravel you can drop into a repo today, plus lint_rules.py, which tells you why a Cursor rule isn't loading.

What you get

The screenshot is real output from the kit’s own commands. Tested from a fresh download of this exact zip: ./run_tests.sh ran 5 tests OK on Python 3.13 and 3.10.

Real terminal output from Laravel Cursor Rules Starter: demo and passing tests

The rules (in .cursor/rules/)

RuleLoadsFirst instruction
laravel-overview.mdcalwaysCheck laravel/framework in composer.lock before using an API
laravel-controllers-requests.mdcby file (app/Http//*.php, routes/*.php)Validate in Form Requests (php artisan make:request StoreOrderRequest) and use $request->validated()
laravel-security.mdcby file (config//*.php, app/Http//*.php, bootstrap/app.php, .env.example)Secrets live in .env (never committed) and are read through config(), not env(), outside config files

Install

Copy .cursor/rules/ into your project root (keep the .mdc extension). Then check them against your code:

python3 tools/lint_rules.py .cursor/rules --project .
./tools/demo.sh        # copies the rules into examples/sample-app and lints them
./run_tests.sh

Honest limits

  • Rules guide the model; they don't enforce anything.
  • Check version-specific advice against your installed versions.

Format and license

Zip, 12 KB, v1.0, 23 files. Free to use, modify and share for any purpose, including commercial work, as long as this notice stays in copies. Not affiliated with or endorsed by Cursor (Anysphere) or Laravel.

FAQ

Laravel 12 or 13?
Both; the rules mark 13-only behavior (PreventRequestForgery, attributes, Queue::route) and tell the agent to check composer.lock first.
Is it really free?
Yes, free to use, change and share.
What's in the paid pack?
8 rules: Eloquent (strict mode, N+1), migrations, Form Requests and policies, queues and scheduling, security, testing, Blade and Livewire.
How do I get the files?
Click Download free. The zip downloads straight away: no checkout, no account.
Do I have to sign up for the newsletter?
No. The form is optional and the download works without it.

Get Laravel Cursor Rules Starter (Free)

Free Laravel Cursor rules in .mdc format, checked against current Laravel docs, plus a linter that shows why a rule isn't applying.

Pairs well with

Download$12

Cursor Rules for FastAPI

7 Cursor rules for FastAPI, written against current docs. Installs in one command, exports AGENTS.md for Claude Code and Codex. $12 once.

View Cursor Rules for FastAPI
DownloadFree

FastAPI Cursor Rules Starter (Free)

Free FastAPI Cursor rules in .mdc format, checked against current FastAPI docs, plus a linter that shows why a rule isn't applying.

View FastAPI Cursor Rules Starter (Free)
Download$12

Cursor Rules for SvelteKit

7 Cursor rules for SvelteKit, written against current docs. Installs in one command, exports AGENTS.md for Claude Code and Codex. $12 once.

View Cursor Rules for SvelteKit

Related