rector/rector-laravel

Rector upgrades rules for Laravel Framework

Installs: 98 761

Dependents: 1

Suggesters: 0

Security: 0

Stars: 10

Watchers: 2

Forks: 3

Open Issues: 0

Type:rector-extension

0.10.2 2021-04-15 22:21 UTC

This package is auto-updated.

Last update: 2021-04-21 20:39:27 UTC


README

See available Laravel rules

Install

composer require rector/rector-laravel --dev

Use Sets

To add a set to your config, use Rector\Laravel\Set\LaravelSetList class and pick one of constants:

use Rector\Laravel\Set\LaravelSetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    $containerConfigurator->import(LaravelSetList::LARAVEL_60);
};