PHPackages                             recoded-dev/phpstan-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. recoded-dev/phpstan-laravel

ActivePhpstan-extension[Testing &amp; Quality](/categories/testing)

recoded-dev/phpstan-laravel
===========================

Improve Laravel static analysis using PHPStan

010PHP

Since Jun 19Pushed 1y agoCompare

[ Source](https://github.com/recoded-dev/phpstan-laravel)[ Packagist](https://packagist.org/packages/recoded-dev/phpstan-laravel)[ RSS](/packages/recoded-dev-phpstan-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

PHPStan Laravel
===============

[](#phpstan-laravel)

Help PHPStan understand Laravel magic.

Usage
-----

[](#usage)

### Installation

[](#installation)

```
composer require --dev recoded-dev/phpstan-laravel
```

You might get asked whether you want to trust the `phpstan/extension-installer` package:

```
Do you trust "phpstan/extension-installer" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [y,n,d,?]

```

This is safe to trust and is used to automatically include phpstan-laravel in PHPStan. If you don't want this you can always add the following snippet to you phpstan.neon(.dist) file:

```
includes:
    - vendor/recoded-dev/phpstan-laravel/extension.neon
```

### Examples

[](#examples)

What does phpstan-laravel add?

#### Scopes

[](#scopes)

It will help understand scopes on builders.

```
