When executing this code, an error occurs in the last line.

$save = vk('docs.save', [ 'group_id' => $group_id, 'file' => $upload->file, 'v' => '5.92' ])->response[0]; 

what am i doing wrong

    1 answer 1

    as it turned out the code should be like this

      $save = vk('docs.save', [ 'group_id' => $group_id, 'file' => $upload->file, 'v' => '5.92' ]);