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

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

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

**[prefer-attribute-accessor](/docs/rules/lint/laravel-9/prefer-attribute-accessor)**

Migrate to the new Model attributes syntax

Not in any preset. In Rector's `rector-laravel/laravel-90`, `rector-laravel/up-to-laravel-100`, `rector-laravel/up-to-laravel-110`, `rector-laravel/up-to-laravel-120`, `rector-laravel/up-to-laravel-130`, `rector-laravel/up-to-laravel-130-without-attributes`, `rector-laravel/up-to-laravel-90` sets. Needs the `laravel` extension. Unsafe fix: it can change behavior.

**[prefer-fake-helper](/docs/rules/lint/laravel-9/prefer-fake-helper)**

Replace $this->faker with the fake() helper function in Factories

Not in any preset. In Rector's `rector-laravel/laravel-90`, `rector-laravel/up-to-laravel-100`, `rector-laravel/up-to-laravel-110`, `rector-laravel/up-to-laravel-120`, `rector-laravel/up-to-laravel-130`, `rector-laravel/up-to-laravel-130-without-attributes`, `rector-laravel/up-to-laravel-90` sets. Needs the `laravel` extension. Unsafe fix: it can change behavior.
