[ 'accept: application/json', 'content-type: application/json', ], 'post' => [ 'username' => 'nuhodds', 'password' => self::$pass, ], ]); if (! is_array($data)) { Notice::note('no data sleep(60)', 'r'); sleep(60); return false; } $header = $data; $header[] = 'Authorization: Bearer '.$data['token']; $header[] = 'accept: application/json'; $header[] = 'content-type: application/json'; return $header; } }