getURI(); return response()->json(['qrcode' => QrCode::encode($uri)], 200); } /** * Decode an uploaded QR Code image * * @param \App\Api\v1\Requests\QrCodeDecodeRequest $request * @return \Illuminate\Http\JsonResponse */ public function decode(QrCodeDecodeRequest $request) { $file = $request->file('qrcode'); return response()->json(['data' => QrCode::decode($file)], 200); } }