Skip to content

Commit 160986a

Browse files
Update docs
1 parent 28bc758 commit 160986a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/advanced-usage/eloquent-casting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Song::findOrFail($id)->artist->name; // 'Default name'
109109

110110
You can also use the `default` argument in the case where you _always_ want a `DataCollection` to be returned.
111111

112-
The first argument (after `:`) should always be the data class to be used with the `DataCollection`, but you can add `nullable` as a comma separated second argument.
112+
The first argument (after `:`) should always be the data class to be used with the `DataCollection`, but you can add `default` as a comma separated second argument.
113113

114114
```php
115115
class Artist extends Model

0 commit comments

Comments
 (0)