Hello,
I'm new to Laravel and I ended up with headscratching.
I have a page, with Blaze template, using foreach, to generate 2D Datamatrix codes.
Those are generated with "use jucksearm\barcode\Datamatrix;" library.
I generate 20 x 2 images. One image is .php using that lib on XAMPP server. Second ones is generated through Laravel / routing:
Route::get('datamatrix/{code}', action: function (string $code ='') {
return response( DataMatrix::png($code,null, 80) , 200) -> header('Content-Type','image/png');
});
Problem is that those that are generated by XAMPP are beeing processed in parallel, and total time takes around 100mS.
Those made by routing and Laravel, looks like are processed one by one, with average time 100-200ms per code so total is like 2.5-3 sec.
How can that be solved?