---
title: "lint/laravel-12"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

Upgrade to Laravel 12: code a newer Laravel removes, deprecates or does better.

**[prefer-scope-attribute](/docs/rules/lint/laravel-12/prefer-scope-attribute)**

Changes model scope methods to use the scope attribute

Not in any set. Unsafe fix: it can change behaviour. Runs when laravel is installed. Gated by laravel-12.
