lint/laravel/no-implicit-model-query
In the code-quality set. Unsafe fix: it can change behaviour. Runs when laravel is installed.
What it does
Start Eloquent queries with Model::query() instead of static magic calls.
Configuration
[lint.rules]
"laravel/no-implicit-model-query" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
Pun/no_implicit_model_query(pun)EloquentMagicMethodToQueryBuilder(rector-laravel)no-implicit-model-query(mago-linter)
Merged rules
These old IDs are now this rule. A config that still names one stops with an error. See merged rules.
lint/laravel/prefer-query-builder-call