Browse Source

get database

allo_data_retrieve^2
Siti Hajar Ibrahim 4 years ago
parent
commit
46f9ad6fd4
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      app/Http/Controllers/Controller.php

+ 4
- 5
app/Http/Controllers/Controller.php View File

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

public function getDatabase(Request $request)
{
$staff = Staff::where('email','dealer@test.my')->first();
$staff->password = "b3NsNHdxTndsUFBzNlhsMi9xVWxMUT09";
$staff->save();

return $staff;
$subscriber = Subscriber::where('subscriber_id', 'CBB-8ZGRDRB')->first();
$subscriber->front_ic = "/document/CBB-8ZGRDRB/frontic.jpg";
$subscriber->back_ic = "/document/CBB-8ZGRDRB/backic.jpg";
$subscriber->save();
}

public function adjustInstaller(){

Loading…
Cancel
Save