public function createUserList()
 {
     // fetch users list from gitlab and create file.
     $client = new HttpClient();
     $body = $client->getAllUsers();
     $users = [];
     foreach ($body as $u) {
         $users[$u->id] = ['name' => $u->name, 'username' => $u->username, 'state' => $u->state];
     }
     \Storage::put($this->userList, json_encode($users, JSON_PRETTY_PRINT));
     return $users;
 }
 /**
  * get all project hooks
  * @param  [integer] $id project id
  * @return [type]     [description]
  */
 public function projectHooks($id)
 {
     $client = new HttpClient();
     $hooks = $client->request('projects/' . $id . '/hooks');
     return $hooks;
 }