Add ability to exclude methods from the rector EloquentMagicMethodToQueryBuilderRector
I found this beneficial for find() and findOrFail(), as these are often used in simple statements without chaining, and subjectively appear overly verbose when ::query()-> is added to them.
Add ability to exclude methods from the rector
EloquentMagicMethodToQueryBuilderRector
I found this beneficial for
find()
andfindOrFail()
, as these are often used in simple statements without chaining, and subjectively appear overly verbose when::query()->
is added to them.e.g.
↓