public function setData($data) { $this->data = trim($data, '0 ') ? Carbon::createFromFormat('dmy', $data) : null; return $this; }