Explorar el Código

FIX SUBSCRIBER database

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

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

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

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


return $subscriber;

Cargando…
Cancelar
Guardar