---
title: "lint/laravel/prefer-unguarded-attribute"
pagination: false
---

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

<RuleId id="lint/laravel/prefer-unguarded-attribute" />

Not in any set. Unsafe fix: it can change behaviour. Runs when laravel is installed. **Planned: not in Pun yet.** Enabling it is a config error.

## What it does

Changes model empty guarded property to use the Unguarded attribute

## Replaces

- [`EmptyGuardedPropertyToUnguardedAttribute`](https://getrector.com/rule-detail/empty-guarded-property-to-unguarded-attribute-rector) (rector-laravel)

[More lint/laravel rules](/docs/rules/lint/laravel) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
