Skip to content

Commit 70a6cae

Browse files
Fix typo.
1 parent 5cd774d commit 70a6cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

db-models-and-eloquent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ For example, sorting tasks by how long before the due date they were completed.
332332
// Sort tasks by the task was completed before the due date
333333
$tasks = Task::query()
334334
->whereNotNull('completed_at')
335-
->oorderByRaw('due_at - completed_at DESC')
335+
->orderByRaw('due_at - completed_at DESC')
336336
->get();
337337
```
338338

@@ -1417,7 +1417,7 @@ Nice if you need to retrieve a specific set of models and don't want to have to
14171417

14181418
```php
14191419
User::create(['id' => 1]);
1420-
User::create(['id' => 2);
1420+
User::create(['id' => 2]);
14211421
User::create(['id' => 3]);
14221422

14231423
// Retrieves the user...

0 commit comments

Comments
 (0)