lint/laravel/prefer-collected-by-attribute
Not in any set. Unsafe fix: it can change behaviour. Runs when laravel is installed.
What it does
Changes model newCollection method to use the CollectedBy attribute
Configuration
[lint.rules]
"laravel/prefer-collected-by-attribute" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
CollectedByPropertyToCollectedByAttribute(rector-laravel)