Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkingshott committed Feb 7, 2022
1 parent 6000b5c commit 278ebdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ $users = User::query()
$join->on('users.id', '=', 'statistics.id')
->where('statistics.table', 'users');
})
->get(['users.name', DB::raw('`values`->"$.post_count" AS `posts`')])
->orderByRaw('`values`->"$.post_count" DESC')
->get(['users.name', DB::raw('`values`->"$.post_count" AS `posts`')])
```

| Name | Posts |
Expand Down

0 comments on commit 278ebdf

Please sign in to comment.