Skip to content

Commit d34671e

Browse files
committed
document without appends
1 parent abc9cd4 commit d34671e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

eloquent-collections.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ In addition, the `Illuminate\Database\Eloquent\Collection` class provides a supe
8686
[setHidden](#method-setHidden)
8787
[toQuery](#method-toquery)
8888
[unique](#method-unique)
89+
[withoutAppends](#method-withoutAppends)
8990

9091
</div>
9192

@@ -303,6 +304,15 @@ The `unique` method returns all of the unique models in the collection. Any mode
303304
$users = $users->unique();
304305
```
305306

307+
<a name="method-withoutAppends"></a>
308+
#### `withoutAppends($attributes)` {.collection-method}
309+
310+
The `withoutAppends` method temporarily removes all of the [appended attributes](/docs/{{version}}/eloquent-serialization#appending-values-to-json) on each model in the collection:
311+
312+
```php
313+
$users = $users->withoutAppends();
314+
```
315+
306316
<a name="custom-collections"></a>
307317
## Custom Collections
308318

0 commit comments

Comments
 (0)