Explorar el Código

FIX SUBSCRIBER database

hajar
Siti Hajar Ibrahim hace 5 años
padre
commit
9881a9cd60
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. 4
    4
      app/Http/Controllers/Controller.php

+ 4
- 4
app/Http/Controllers/Controller.php Ver fichero

@@ -120,15 +120,15 @@ class Controller extends BaseController

public function getDatabase(Request $request)
{
$subscriber = Subscriber::where('postcode', $request->postcode )->get();
$subscriber = Subscriber::where('state', $request->state )->get();
foreach ($subscriber as $key => $s) {
# code..
$s->city = "-";
$s->state = "-";
$s->city = "CYBERJAYA";
$s->state = "SELANGOR";
$s->save();
}


return count($subscriber);
return count($subscriber) . $subscriber;
}
}

Cargando…
Cancelar
Guardar