Skip to content

Commit

Permalink
chore: fix orderBy example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
roydejong committed Jun 24, 2024
1 parent 4ee6dbd commit 81a2286
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 @@ -105,7 +105,7 @@ You can easily build and run custom queries, and get results in various ways - f
$matchingCars = Car::query()
->where('make = ?', 'Toyota')
->andWhere('year > ?', 2000)
->orderBy('year', 'DESC')
->orderBy('year DESC')
->limit(10)
->queryAllModels(); // Car[]
```
Expand Down

0 comments on commit 81a2286

Please sign in to comment.