diff --git a/eloquent-collections.md b/eloquent-collections.md index c5ca4037dc..715ae8fb4c 100644 --- a/eloquent-collections.md +++ b/eloquent-collections.md @@ -245,7 +245,7 @@ $users = $users->mergeVisible(['middle_name']); #### `mergeHidden($attributes)` {.collection-method} -The `mergeHidden` method [hides additional attributes](/docs/{{version}}/eloquent-serialization#hiding-attributes-from-json) twhile retaining existing hidden attributes: +The `mergeHidden` method [hides additional attributes](/docs/{{version}}/eloquent-serialization#hiding-attributes-from-json) while retaining existing hidden attributes: ```php $users = $users->mergeHidden(['last_login_at']); diff --git a/eloquent.md b/eloquent.md index 27e56bdd72..4224b247bc 100644 --- a/eloquent.md +++ b/eloquent.md @@ -325,8 +325,19 @@ If you need to customize the names of the columns used to store the timestamps, class Flight extends Model { - const CREATED_AT = 'creation_date'; - const UPDATED_AT = 'updated_date'; + /** + * The name of the "created at" column. + * + * @var string|null + */ + public const CREATED_AT = 'creation_date'; + + /** + * The name of the "updated at" column. + * + * @var string|null + */ + public const UPDATED_AT = 'updated_date'; } ```