/** * Add a category to the DB. * * @param array $name * @param $text * @return static */ public function add($name, $text) { return $this->categoryModel->create(compact('name', 'text')); }