Exemplo n.º 1
0
 public function deletemass()
 {
     $rows = json_decode(Input::get('rows'));
     if (is_array($rows) && count($rows) > 0) {
         foreach ($rows as $i => $r) {
             LaravelCP::runDeleteMass($r);
         }
     } elseif (is_integer($rows)) {
         LaravelCP::runDeleteMass($rows);
     }
     if (!Api::make(array('success'))) {
         return Response::json(array('result' => 'success'));
     }
 }