Skip to content

Conversation

fheider
Copy link
Contributor

@fheider fheider commented Nov 27, 2019

laravel/ideas#1932

The trait has 2 functions getCreatedAtColumn and getUpdatedAtColumn, but dont use it exclusively.
Better would be a single point to get the right columns.

In the end, the user has the same 2 options to set the column names: via const or via getXColumn(). But now you dont need to change both, cause the constants are only used in the getXColumn-methods.

@GrahamCampbell GrahamCampbell changed the title force usage getting timestamps columns [6.x] Force usage getting timestamps columns Nov 27, 2019
@taylorotwell taylorotwell merged commit 93b5068 into laravel:6.x Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants