value += $value; $this->save(); return true; } public static function incrementEmailIdsCreated($value = 1): bool { $meta = Meta::query()->where('key', 'email_ids_created')->first(); if ($meta) { $meta->incrementMeta($value); return true; } return false; } public static function incrementMessagesReceived($value = 1): bool { $meta = Meta::query()->where('key', 'messages_received')->first(); if ($meta) { $meta->incrementMeta($value); return true; } return false; } public static function getEmailIdsCreated() { $meta = Meta::query()->where('key', 'email_ids_created')->first(); if ($meta) { return $meta->value; } return 'NaN'; } public static function getMessagesReceived() { $meta = Meta::query()->where('key', 'messages_received')->first(); if ($meta) { return $meta->value; } return 'NaN'; } }