withSetProviders(LaravelSetProvider::class) ->withPaths([ __DIR__ . '/app', __DIR__ . '/bootstrap', __DIR__ . '/config', __DIR__ . '/database', __DIR__ . '/lang', __DIR__ . '/routes', ]) ->withPhpSets() ->withComposerBased(laravel: true) ->withSets([ LaravelLevelSetList::UP_TO_LARAVEL_130, LaravelSetList::LARAVEL_ARRAYACCESS_TO_METHOD_CALL, LaravelSetList::LARAVEL_CODE_QUALITY, LaravelSetList::LARAVEL_COLLECTION, LaravelSetList::LARAVEL_IF_HELPERS, LaravelSetList::LARAVEL_LEGACY_FACTORIES_TO_CLASSES, LaravelSetList::LARAVEL_TYPE_DECLARATIONS, ]) ->withTypeCoverageLevel(0) ->withDeadCodeLevel(0) ->withCodeQualityLevel(0) ->withSkip([ // Disable Laravel notations. CommandHiddenPropertyToHiddenAttributeRector::class, DescriptionPropertyToDescriptionAttributeRector::class, FillablePropertyToFillableAttributeRector::class, HiddenPropertyToHiddenAttributeRector::class, ModelCastsPropertyToCastsMethodRector::class, SignaturePropertyToSignatureAttributeRector::class, TablePropertyToTableAttributeRector::class, WithoutTimestampsPropertyToWithoutTimestampsAttributeRector::class, // Validation. ValidationRuleArrayStringValueToArrayRector::class, ]);