group(function () { Route::get('/{category:slug?}', ShopController::class)->name('shop.index')->withoutMiddleware('auth'); Route::post('/purchase/{package}', [ShopController::class, 'purchase'])->name('shop.buy')->middleware('throttle:10,1'); Route::post('/voucher', ShopVoucherController::class)->name('shop.use-voucher')->middleware('throttle:10,1'); }); // PayPal routes Route::controller(PayPalController::class)->prefix('paypal')->group(function () { Route::post('/process-transaction', 'process')->name('paypal.process-transaction'); Route::get('/successful-transaction', 'successful')->name('paypal.successful-transaction'); Route::get('/cancelled-transaction', 'cancelled')->name('paypal.cancelled-transaction'); });