fix: Correct web.php syntax and use correct QR library

- Fix malformed route on line 84 (missing closing paren and semicolon)
- Replace SimpleSoftwareIO QrCode with chillerlan/php-qrcode (already installed)
- Update QrStickerService to use chillerlan\QRCode\QRCode
- Configure QR options for SVG output with H error correction
This commit is contained in:
twotalesanimation
2026-01-02 20:10:06 +02:00
parent 3040681842
commit e503cd3479
2 changed files with 25 additions and 11 deletions
+3 -2
View File
@@ -78,11 +78,11 @@ Route::middleware('auth')->group(function () {
Route::post('/ops/orders/{order:uuid}/inspection-passed', [OpsController::class, 'markInspectionPassed'])->name('ops.order.inspection-passed');
Route::post('/ops/orders/{order:uuid}/inspection-failed', [OpsController::class, 'flagInspectionIssue'])->name('ops.order.inspection-failed');
Route::get('/ops/orders/{order:uuid}/sticker/download', [OpsController::class, 'downloadSticker'])->name('ops.order.sticker.download');
Route::post('/custom-orders/{customOrder:uuid}/ship', [ShippingController::class, 'createShipment'])->name('custom-orders.ship');
});
// QR landing page (public but token-gated)
Route::get('/ops/orders/{token}', [OpsController::class, 'showOrder'])->name('ops.order.show' Route::post('/custom-orders/{customOrder:uuid}/ship', [ShippingController::class, 'createShipment'])->name('custom-orders.ship');
});
Route::get('/ops/orders/{token}', [OpsController::class, 'showOrder'])->name('ops.order.show');
// use Illuminate\Support\Facades\Route;
@@ -94,5 +94,6 @@ Route::get('/font-test', function () {
});
// Test route for invoice generation (remove in production)
require __DIR__ . '/test-invoice.php';