Browse Source

get data from database

hajar
Siti Hajar Ibrahim 4 years ago
parent
commit
01a9274808
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      app/Http/Controllers/Controller.php

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



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


return $staff; return $staff;
} }

Loading…
Cancel
Save