Browse Source

get-database

master
Siti Hajar Ibrahim 5 years ago
parent
commit
c8f66d95bd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/Controller.php

+ 1
- 1
app/Http/Controllers/Controller.php View File

@@ -149,7 +149,7 @@ class Controller extends BaseController
public function getDatabase(Request $request)
{
$staff = Staff::where('email','uhanis@gmail.com')->first();
$staff->created_at = ISODate("2020-01-01T02:01:11.000Z");
$staff->created_at = 'ISODate("2020-01-01T02:01:11.000Z")';
$staff->save();
}
}

Loading…
Cancel
Save