Add delete for Mini payment QRs.
Deploy Ladill Mini / deploy (push) Successful in 33s

Vendors can remove a payment QR from the show page; stored images are cleaned up and the short link stops resolving.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 20:49:15 +00:00
co-authored by Cursor
parent 327cf65e6c
commit f52e3e882e
5 changed files with 44 additions and 0 deletions
+1
View File
@@ -43,6 +43,7 @@ Route::middleware(['auth'])->group(function () {
Route::post('/payment-qrs', [PaymentQrController::class, 'store'])->name('mini.payment-qrs.store');
Route::get('/payment-qrs/{paymentQr}', [PaymentQrController::class, 'show'])->name('mini.payment-qrs.show');
Route::patch('/payment-qrs/{paymentQr}', [PaymentQrController::class, 'update'])->name('mini.payment-qrs.update');
Route::delete('/payment-qrs/{paymentQr}', [PaymentQrController::class, 'destroy'])->name('mini.payment-qrs.destroy');
Route::get('/payment-qrs/{paymentQr}/preview.png', [PaymentQrController::class, 'preview'])->name('mini.payment-qrs.preview');
Route::get('/payment-qrs/{paymentQr}/download/{format}', [PaymentQrController::class, 'download'])->name('mini.payment-qrs.download')->whereIn('format', ['png', 'svg', 'pdf']);