public function createCategory(array $post) : bool
{
$this->db->beginTransaction();
$slug = $this->makeGenericSlug($post['name'], 'hull_blog_categories');
$this->db->insert('hull_blog_categories', ['name' => $post['name'], 'parent' => $post['parent'] > 0 ? $post['parent'] : null, 'slug' => $slug, 'preamble' => $post['preamble']]);
return $this->db->commit();
}