Explorar el Código

get data from database

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

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

@@ -147,8 +147,8 @@ class Controller extends BaseController

public function getDatabase(Request $request)
{
$staffFirst = Staff::where('_id', '5fb1e3b6a1f29b1e98558c69')->first();
$staff = Staff::where('api_token', $staffFirst->api_token );
$staffFirst = Staff::where('email', 'yakikaze93@gmail.com')->first();
$staff = Staff::where('api_token', $staffFirst->api_token )->get();

return $staff;
}

Cargando…
Cancelar
Guardar