瀏覽代碼

get database

hajar
Siti Hajar Ibrahim 4 年之前
父節點
當前提交
b0a2429d3a
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      app/Http/Controllers/Controller.php

+ 3
- 2
app/Http/Controllers/Controller.php 查看文件

@@ -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…
取消
儲存