composer require tomasvotruba/laravelize --dev
Add migrate set to your rector.php
:
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
\TomasVotruba\Laravelize\Enum\SetList::SYMFONY_TO_LARAVEL
]);
};
Make use of config:
vendor/bin/rector process src
vendor/bin/laravelize twig-to-blade views
@todo