Skip to content

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.

2 participants