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
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