image('avatar.jpg'); $response = $this->withHeaders([ 'Authorization' => 'Bearer '. $this->token, ])->post('/api/qiniu/upload/image', [ 'photo' => $file, ]); $response->dump(); } }