public function handle(Category $category)
 {
     $conn = $this->app['db'];
     $slugify = $this->app['slugify'];
     $category->setSlug($slugify->slugify($category->getName()));
     $conn->insert('category', ['name' => $category->getName(), 'slug' => $category->getSlug()]);
 }
 public function handle(Category $category, $id)
 {
     $conn = $this->app['db'];
     $conn->update('category', ['name' => $category->getName(), 'slug' => $category->getSlug()], ['id' => $id]);
 }