diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 499db2f..56b3646 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -251,7 +251,7 @@ class PagesController extends Controller } else { $bidnum=$reprint_receipt_req->reprintbiddernum; $checkout_result = Checkout::where('bidder_num', '=', $bidnum) - ->get(); + ->first(); return redirect()->route('receiptpdf', ['checkout_id' => $checkout_result->checkout_id]); } }