mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 21:01:05 +03:30
16 lines
405 B
PHP
16 lines
405 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use \Milon\Barcode\DNS1D;
|
|
use \Milon\Barcode\DNS2D;
|
|
|
|
class BarCodeController extends Controller
|
|
{
|
|
public function generateBarcode($Number)
|
|
{
|
|
$Barcode = DNS1D::getBarcodePNGUri($Number, "C128");
|
|
$QRCode = DNS2D::getBarcodePNGUri($Number, "QRCODE");
|
|
return \MessageResponse::data(['Barcode' => $Barcode, 'QRCode' => $QRCode]);
|
|
}
|
|
} |