Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Fixes Arrayable typos in docs #327

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/advanced-usage/normalizers.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ A `Normalizer` will take a payload like a model and will transform it into an ar
By default, there are five normalizers for each data object:

- **ModelNormalizer** will cast eloquent models
- **ArraybleNormalizer** will cast `Arrayable`'s
- **ArrayableNormalizer** will cast `Arrayable`'s
- **ObjectNormalizer** will cast `stdObject`'s
- **ArrayNormalizer** will cast arrays
- **JsonNormalizer** will cast json strings
Expand All @@ -34,7 +34,7 @@ class SongData extends Data
{
return [
ModelNormalizer::class,
ArraybleNormalizer::class,
ArrayableNormalizer::class,
ObjectNormalizer::class,
ArrayNormalizer::class,
JsonNormalizer::class,
Expand All @@ -46,7 +46,7 @@ class SongData extends Data
A normalizer implements the `Normalizer` interface and should return an array representation of the payload, or null if it cannot normalize the payload:

```php
class ArraybleNormalizer implements Normalizer
class ArrayableNormalizer implements Normalizer
{
public function normalize(mixed $value): ?array
{
Expand Down
2 changes: 1 addition & 1 deletion docs/as-a-resource/transformers.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ArtistData extends Data{
}
```

Next to a `DateTimeInterfaceTransformer` the package also ships with an `ArraybleTransformer` that transforms an `Arrayable` object to an array.
Next to a `DateTimeInterfaceTransformer` the package also ships with an `ArrayableTransformer` that transforms an `Arrayable` object to an array.

It is possible to create transformers for your specific types. You can find more info [here](/docs/laravel-data/v2/advanced-usage/creating-a-transformer).

Expand Down