---
title: "analyse/laravel/undefined-model-append"
pagination: false
---

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

<RuleId id="analyse/laravel/undefined-model-append" />

In the [`analyse-essential`](/docs/rules/presets/analyse-essential) preset and every stricter one. Report only. Runs when laravel is installed. Upstream gates: `checkModelAppends (default true)`.

## Configuration

```toml title="pun.toml"
[analyse.rules]
"laravel/undefined-model-append" = "on"
```

To skip it in some files or lines, add an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`ModelAppendsRule`](https://github.com/larastan/larastan/blob/v3.14.0/docs/rules.md#modelappendsrule) (phpstan-classes)
- [`rules.modelAppends`](https://github.com/larastan/larastan/blob/v3.14.0/docs/rules.md) (larastan)

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