public function getDatecreated() { if (!$this->datecreated) { return new Carbon(); } return $this->datecreated; }