Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit 631c52d

Browse files
committed
update readme
1 parent 1b550f6 commit 631c52d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ $user = User::find(1);
6767
$user->has('some_key'); // returns true
6868
```
6969

70+
Retrieving an attribute as a collection:
71+
72+
```php
73+
$user = User::find(1);
74+
$user->collect('some_key'); // returns Collection(['some val']);
75+
```
76+
7077
You can also overwrite the config key:
7178

7279
```php

0 commit comments

Comments
 (0)