Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 436 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 436 Bytes

Installation

composer require --dev devfrey/rector-eloquent-generics
<?php

use Rector\Config\RectorConfig;

return RectorConfig::configure()
    // ...
    ->withRules([
        Devfrey\RectorLaravel\Eloquent\AddBuilderPropertyRector::class,
        Devfrey\RectorLaravel\Eloquent\AddGenericHasBuilderTraitRector::class,
        Devfrey\RectorLaravel\Eloquent\DocumentRelationGenericsRector::class,
    ]);