Fix PDF print URL using batch_number instead of id for route model binding
This commit is contained in:
@@ -43,7 +43,7 @@ class QrCodeBatchResource extends JsonResource
|
||||
'print_url' => URL::temporarySignedRoute(
|
||||
'api.v1.admin.qr-batches.print-pdf',
|
||||
now()->addHours(24),
|
||||
['qr_code_batch' => $this->id]
|
||||
['qr_code_batch' => $this->batch_number]
|
||||
),
|
||||
'created_at' => $this->created_at?->toIso8601String(),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user