Selaa lähdekoodia

get database

hajar
Siti Hajar Ibrahim 4 vuotta sitten
vanhempi
commit
b0a2429d3a
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3
    2
      app/Http/Controllers/Controller.php

+ 3
- 2
app/Http/Controllers/Controller.php Näytä tiedosto

@@ -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();
}


Loading…
Peruuta
Tallenna