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

[8.x] Immutable date and datetime casting #38199

Merged
merged 3 commits into from
Aug 1, 2021
Merged

[8.x] Immutable date and datetime casting #38199

merged 3 commits into from
Aug 1, 2021

Conversation

hotmeteor
Copy link
Contributor

@hotmeteor hotmeteor commented Aug 1, 2021

Adds support for accessing dates as immutable. Maintains support for all current date/datetime functionality, except returns a CarbonImmutable object instead of Carbon.

  • immutable_date
  • immutable_datetime
  • immutable_datetime:Y-m-d g:ia

Note: Totally open to some snazzier naming.

@hotmeteor hotmeteor changed the title [8.x] [8.x] Immutable date and datetime casting Aug 1, 2021
@taylorotwell taylorotwell merged commit 1369ecc into laravel:8.x Aug 1, 2021
@taylorotwell
Copy link
Member

Thanks!

@hotmeteor
Copy link
Contributor Author

💪

@hotmeteor hotmeteor deleted the cast-immutable branch August 1, 2021 15:19
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.

None yet

2 participants