Explorar el Código

get-database

master
Siti Hajar Ibrahim hace 5 años
padre
commit
c8f66d95bd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      app/Http/Controllers/Controller.php

+ 1
- 1
app/Http/Controllers/Controller.php Ver fichero

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

Cargando…
Cancelar
Guardar