Ver código fonte

get database

hajar
Siti Hajar Ibrahim 4 anos atrás
pai
commit
b0a2429d3a
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3
    2
      app/Http/Controllers/Controller.php

+ 3
- 2
app/Http/Controllers/Controller.php Ver arquivo

@@ -120,10 +120,11 @@ class Controller extends BaseController

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


Carregando…
Cancelar
Salvar