public function add($data) { $category = Category::insert($data); if ($category) { return true; } return false; }