Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bringing back the "getDates()" previous functionality #47951

Closed
wants to merge 2 commits into from

Conversation

mgralikowski
Copy link

Before Laravel 10 this method gave us a list of all date-type attributes including both - explicitly set up in the model and timestamps. Since version 10 it returns only those 2 timestamps or empty array and it breaks some functionalities.

Example:
https://github.com/LaravelCollective/html/blob/64ddfdcaeeb8d332bd98bef442bef81e39c3910b/src/Eloquent/FormAccessible.php#L31
#42587 (comment)

My proposal is just to bring back the previous functionality. There is no more the $dates attribute, but according to the L10 upgrade guide, it was just kind of an alias.

If not, then maybe a separate method?

Copy link
Member

@GrahamCampbell GrahamCampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change. I don't think we should do this.

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.

3 participants