Your PHP code doesn’t have a loop. It only pulls the first stream. ($request->data[0])
$request->data[0]