Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Sep 15, 2023
1 parent 6cf75b1 commit d0a044d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/as-a-data-transfer-object/casts.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ class SongData extends Data
}
```

Tip: we can also remove the `EnumCast` since the package will automatically cast enums because they're a native PHP type, but this made the example easy to understand.

## Creating your own casts

It is possible to create your casts. You can read more about this in the [advanced chapter](/docs/laravel-data/v3/advanced-usage/creating-a-cast).

0 comments on commit d0a044d

Please sign in to comment.