Skip to content
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
2 changes: 1 addition & 1 deletion eloquent-collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ $users = $users->mergeVisible(['middle_name']);
<a name="method-mergeHidden"></a>
#### `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']);
Expand Down
15 changes: 13 additions & 2 deletions eloquent.md
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
```

Expand Down