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

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

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

**[prefer-assert-see-html](/docs/rules/lint/laravel-11/prefer-assert-see-html)**

Replace assertSee with assertSeeHtml when testing HTML with escape set to false

Not in any preset. In Rector's `rector-laravel/laravel-110`, `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` sets. Needs the `laravel` extension. Safe fix.

**[prefer-casts-method](/docs/rules/lint/laravel-11/prefer-casts-method)**

Refactor Model $casts property with casts() method

Not in any preset. In Rector's `rector-laravel/laravel-110`, `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` sets. Needs the `laravel` extension. Unsafe fix: it can change behavior.

**[prefer-geometry-column](/docs/rules/lint/laravel-11/prefer-geometry-column)**

refactors calls with the pre Laravel 11 methods for blueprint geometry columns

Not in any preset. In Rector's `rector-laravel/laravel-110`, `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` sets. Needs the `laravel` extension. Unsafe fix: it can change behavior.

**[prefer-queueable-trait](/docs/rules/lint/laravel-11/prefer-queueable-trait)**

Replace Dispatchable, InteractsWithQueue, Queueable, and SerializesModels traits with the Queueable trait

Not in any preset. In Rector's `rector-laravel/laravel-110`, `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` sets. Needs the `laravel` extension. Unsafe fix: it can change behavior.
