uppercese category qoshildi

This commit is contained in:
2026-04-06 21:55:50 +05:00
parent 4d0f9b6309
commit 48f7f784b9
14 changed files with 30 additions and 10 deletions

View File

@@ -61,4 +61,16 @@ class QrController extends Controller
$qr = QrCode::format('png')->size(200)->generate($url);
Storage::put($dir . '/qr.png', $qr);
}
public function qrImage($type, $id)
{
$dbType = $type === 'auto' ? 'auto_' : 'estate_';
$path = storage_path('app/public/attachments/' . $dbType . $id . '/qr.png');
if (!file_exists($path)) {
abort(404);
}
return response()->file($path);
}
}