Add customer-facing check for winning items
This commit is contained in:
@@ -49,3 +49,21 @@ If you discover a security vulnerability within Laravel, please send an e-mail t
|
||||
## License
|
||||
|
||||
The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).
|
||||
|
||||
## Changelog
|
||||
|
||||
### [bidder-facing-checkout] - 2026-04-24
|
||||
|
||||
#### Added
|
||||
- **Public Winnings View:** Introduced a new feature allowing bidders to check their won items by entering their bidder number.
|
||||
- **Routes:** Added `/mywinnings` (GET and POST) routes to `routes/web.php`.
|
||||
- **Controller Logic:** Implemented `myWinnings` method in `PagesController` to handle bidder lookups and display results.
|
||||
- **Views:**
|
||||
- `resources/views/mywinnings_form.blade.php`: Search form for bidder number.
|
||||
- `resources/views/mywinnings_results.blade.php`: Detailed list of won items and total cost.
|
||||
- **Navigation:** Added "Check My Winnings" link to the main layout navbar for easy public access.
|
||||
- **Testing:** Created `tests/Feature/MyWinningsTest.php` to ensure the new feature works as expected.
|
||||
|
||||
#### Changed
|
||||
- **Models:** Updated `App\Models\WinningBids` relationship `items()` from `hasOne` to `belongsTo` to correctly map the database structure and support eager loading.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user