created_at->diffForHumans(); } /** * Returns model in days since updated_at. */ public function getUpdatedAgoAttribute() { if ($this->updated_at) { return $this->updated_at->diffForHumans(); } else { return Constant::NULL; } } }