Skip to content

Commit

Permalink
Merge pull request #770 from kimulisiraj/patch-2
Browse files Browse the repository at this point in the history
Update wrapping.md
  • Loading branch information
rubenvanassche authored May 6, 2024
2 parents 7de9b7e + 2491c5c commit 2f704f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/as-a-resource/wrapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ UserData::from(User::first())->wrap('data');
A data collection inside a data object WILL get wrapped when a wrapping key is set:

```php
use Spatie\LaravelData\Attributes\DataCollectionOf;use Spatie\LaravelData\DataCollection;
use Spatie\LaravelData\Attributes\DataCollectionOf;
use Spatie\LaravelData\DataCollection;

class AlbumData extends Data
{
Expand Down

0 comments on commit 2f704f9

Please sign in to comment.