Created
June 5, 2015 13:26
-
-
Save cwhite92/c2801dea33a2607ae873 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CarbonTrait { | |
public function __get($property) { | |
if (in_array($property, $this->accessMutateDates)) { | |
return new Carbon(parent::__get($property)); | |
} | |
return parent::__get($property); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment