I can't save the qrcode and datamatrix images produced by the milon barcode package in memory, getting this error: The non-static method Milon\Barcode\DNS2D::getBarcodePNG() cannot be called statically
On images produced in DNS1D I can save it correctly using the base64_decode function, while the problem occurs with saving DNS2D... This is my code: insert image description here
$pathQr_code = 'documents/qrcode/'. 'azienda-' . $business->id . '_posta-' . $post->id . '.png';
$qr_code = Storage::disk('public')->put($pathQr_code , base64_decode(DNS2D::getBarcodePNG("$post->qr_code", 'QRCODE')));
I've tried different ways but I can't figure out what's wrong.... Can anyone help me?