Use Laravel improvement sets
mainUse LaravelSetList to apply groups of rules designed to improve specific aspects of your Laravel codebase, such as code quality, collection usage, or testing.
<?php declare(strict_types=1);
use Rector\Config\RectorConfig;
use RectorLaravel\Set\LaravelSetList;
return RectorConfig::configure()
->withSets([
LaravelSetList::LARAVEL_CODE_QUALITY,
LaravelSetList::LARAVEL_COLLECTION,
...
]);