Ejemplo n.º 1
0
 public function delete($id)
 {
     $category = Category::where("id", "=", $id)->delete();
     if ($category) {
         return true;
     }
     return false;
 }
Ejemplo n.º 2
0
 public function getList()
 {
     $category = Category::where('status', 1)->get();
     return $category;
 }