Skip to content

Commit 28fd6ce

Browse files
committed
Add small example
1 parent 6415422 commit 28fd6ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ class User extends Eloquent {
9696

9797
Embedded relations now return an `Illuminate\Database\Eloquent\Collection` rather than a custom Collection class. If you were using one of the special methods that were available, convert them to Collection operations.
9898

99+
```php
100+
$books = $user->books()->sortBy('title');
101+
```
102+
99103
Configuration
100104
-------------
101105

0 commit comments

Comments
 (0)