Skip to content

Conversation

@crynobone
Copy link
Member

@crynobone crynobone commented Dec 18, 2025

fix #56893

This PR allows developer to disable either created_at or updated_at on pivot relationships.

Before

Using ->withTimestamps() will always enable both created_at and updated_at.

After

You can use ->withTimestamps(createdAt: false) or ->withTimestamps(updatedAt: false) to just disable the field you need.

attaching models fix #56893 Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@crynobone crynobone marked this pull request as ready for review December 19, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants