Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Why is Carbon used in the Eloquent model? #1408
While reading through the Eloquent model code I noticed that Carbon is used to convert strings to dates. But I don't see the advantage since only methods are used that are also available in the DateTime class.
Or am I missing something else?
Eloquent serves up Carbon for datetime and timestamp columns. By default it will serve up Carbon for the
In the specific case you're referring to with
Here is the original proposal.