output($qrCode, 100); $qrBase64 = base64_encode($qrBinary); return '
QR ' . htmlspecialchars($palletNo) . '
'; // $mpdf = new Mpdf([ // 'mode' => 'utf-8', // 'format' => [60, 14], // 'margin_left' => 0, // 'margin_right' => 0, // 'margin_top' => 0, // 'margin_bottom' => 0, // // 'tempDir' => '/var/www/storage/mpdf-tmp', // ]); // $mpdf->WriteHTML($html); // // Output PDF to browser for printing // $mpdf->Output('qr-label.pdf', 'I'); } /** * Store a newly created resource in storage. */ public function store(Request $request) { // } /** * Display the specified resource. */ public function show(string $id) { // } /** * Update the specified resource in storage. */ public function update(Request $request, string $id) { // } /** * Remove the specified resource from storage. */ public function destroy(string $id) { // } }