Exemplo n.º 1
0
 function getClientsFromUsers()
 {
     //get client list
     $users = users::all();
     $clients = [];
     foreach ($users as $patient) {
         //check if the user is apatient
         if (!$patient["admin"]) {
             $clients[] = $patient;
         }
     }
     return $clients;
 }