Following example from the Docs.
Before:
User::popular()->orWhere(function (Builder $query) { $query->active();})->get()
After:
User::popular()->orWhere->active()->get();
Tip given by @TheLaravelDev
Only until Jan 16th: coupon RESOLUTION25 for 40% off Yearly/Lifetime membership!
Read more hereFollowing example from the Docs.
Before:
User::popular()->orWhere(function (Builder $query) { $query->active();})->get()
After:
User::popular()->orWhere->active()->get();
Tip given by @TheLaravelDev