Ver código fonte

get data from database

hajar
Siti Hajar Ibrahim 5 anos atrás
pai
commit
026bdfa53f
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      app/Http/Controllers/Controller.php

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

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

Carregando…
Cancelar
Salvar