From 68a49a460c44a30985f03402ecc83d8d15f292d5 Mon Sep 17 00:00:00 2001 From: Mahmoud Ramadan <48416569+mahmoudmohamedramadan@users.noreply.github.com> Date: Sun, 21 Dec 2025 19:31:51 +0200 Subject: [PATCH 1/2] Fix typo in mergeHidden method description --- eloquent-collections.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']); From ce444e6497b27ba93cc3158c98da7ea370ce374f Mon Sep 17 00:00:00 2001 From: Mahmoud Ramadan <48416569+mahmoudmohamedramadan@users.noreply.github.com> Date: Sun, 21 Dec 2025 19:34:05 +0200 Subject: [PATCH 2/2] Change timestamp constants to public in Flight model Updated the Flight model to use public constants for created and updated timestamps. --- eloquent.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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'; } ```