lint/laravel/prefer-delete-when-missing-models-attribute
Not in any preset. In Rector’s rector-laravel/laravel-130, rector-laravel/laravel-130-attributes, rector-laravel/up-to-laravel-130 sets. Needs the laravel extension. Unsafe fix: it can change behavior.
What it does
Changes the deleteWhenMissingModels property to use the DeleteWhenMissingModels attribute
Configuration
[lint.rules]
"laravel/prefer-delete-when-missing-models-attribute" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
DeleteWhenMissingModelsPropertyToDeleteWhenMissingModelsAttribute(rector-laravel)