Find the best Rector rule to solve your problem. Searching through 671 rules.
Found 1 rule. That's the one:
The EloquentMagicMethodToQueryBuilderRule is designed to automatically transform certain magic method calls on Eloquent Models into corresponding Query Builder method calls.
use App\Models\User;
-$user = User::find(1);
+$user = User::query()->find(1);