diff --git a/app/Models/WinningBids.php b/app/Models/WinningBids.php index 9bc7869..6cf890a 100644 --- a/app/Models/WinningBids.php +++ b/app/Models/WinningBids.php @@ -22,7 +22,7 @@ class WinningBids extends Model public function items() { - return $this->hasMany('App\Models\Items', 'winning_item_num', 'iditems'); + return $this->hasMany('App\Models\Items', 'iditems', 'winning_item_num'); } public function bidders() diff --git a/resources/views/receiptpdf.blade.php b/resources/views/receiptpdf.blade.php index 90ea52c..10a22c1 100644 --- a/resources/views/receiptpdf.blade.php +++ b/resources/views/receiptpdf.blade.php @@ -84,13 +84,13 @@ @foreach($checkout_list_results as $checkout_list_result)