fix: 🐛 vb review

This commit is contained in:
Vincent BRIDIER 2026-05-29 11:41:18 +02:00
parent 7fa8a1151d
commit 15d3f0dfac
4 changed files with 15 additions and 10 deletions

View file

@ -50,7 +50,7 @@ class GoldenCrushController extends Controller
GoldenCrushGame::create([
'customer_id' => $customerId,
'choice' => $request->integer('choice'),
'ip_address' => $request->ip(),
'ip_address' => app('clientIp'),
]);
}

View file

@ -61,6 +61,12 @@ data:
AXEPTA_MERCHANT_ID: "${APP_AXEPTA_MERCHANT_ID}"
AXEPTA_APIKEY: "${APP_AXEPTA_APIKEY}"
AXEPTA_HMAC: "${APP_AXEPTA_HMAC}"
GOLDEN_GAME_START: "${APP_GOLDEN_GAME_START}"
GOLDEN_VOTE_START_AT: "${APP_GOLDEN_VOTE_START_AT}"
GOLDEN_VOTE_END_AT: "${APP_GOLDEN_VOTE_END_AT}"
GOLDEN_END_PARTICIPATION_END_AT: "${APP_GOLDEN_END_PARTICIPATION_END_AT}"
GOLDEN_END_GAME_END_AT: "${APP_GOLDEN_END_GAME_END_AT}"
---
apiVersion: v1
kind: PersistentVolumeClaim

View file

@ -132,24 +132,24 @@ Route::name('club.')->prefix('club')->group(function () {
Route::get('reductions', [DiscountController::class, 'showCustomerBrList'])->name('discounts.index');
Route::post('reductions/print', [DiscountController::class, 'fetchBrPdf'])->name('discounts.print');
// * GOLDEN CRUSH
// * GOLDEN CRUSH
Route::get('/grand-vote-des-panes', [GoldenCrushController::class, 'index'])
->middleware('golden.period:vote')
->name('golden-crush');
Route::post('/golden-crush', [GoldenCrushController::class, 'store'])
Route::post('/grand-vote-des-panes/golden-crush', [GoldenCrushController::class, 'store'])
->middleware('golden.period:vote')
->name('golden-crush.store');
Route::get('/thanks-for-participation', [GoldenCrushController::class, 'thanksForParticipation'])
Route::get('/grand-vote-des-panes/merci-pour-votre-participation', [GoldenCrushController::class, 'thanksForParticipation'])
->middleware('golden.period:vote')
->name('golden-crush.thanks-for-participation');
Route::get('/end-of-participation', [GoldenCrushController::class, 'endOfParticipation'])
Route::get('/grand-vote-des-panes/fin-des-participations', [GoldenCrushController::class, 'endOfParticipation'])
->middleware('golden.period:end_participation')
->name('golden-crush.end-of-participation');
Route::get('/end-of-game', [GoldenCrushController::class, 'endOfGame'])
Route::get('/grand-vote-des-panes/jeu-termine', [GoldenCrushController::class, 'endOfGame'])
->middleware('golden.period:end_game')
->name('golden-crush.end-of-game');
});

View file

@ -190,16 +190,15 @@ Route::middleware(['throttle:web'])->name('fo.')->group(function () {
// * OP GOLDEN CRUSH
Route::controller(GoldenCrushController::class)->group(function () {
Route::get('/grand-vote-des-panes', 'index')
->middleware(['golden.period:start_game'])
->middleware('golden.period:vote')
->name('golden-crush');
Route::get('/end-of-participation', 'endParticipation')
->middleware('golden.period:end_participation')
->name('participation-ended');
Route::get('/end-of-game', 'endGame')
Route::get('/grand-vote-des-panes/jeu-termine', 'endGame')
->middleware('golden.period:end_game')
->name('game-ended');
->name('golden-crush.game-ended');
});
});