name("cart.update"); Route::get('/checkout', [MainController::class, 'checkout']); Route::get('/main', [MainController::class, 'main']); Route::get('/shop', [MainController::class, 'shop']); Route::get('/single/{id}', [MainController::class, 'singleProduct']); Route::get('/register', [MainController::class, 'register'])->name('register'); Route::post('/registerUser', [MainController::class, 'registerUser'])->name('registerUser'); Route::get('/login', [MainController::class, 'login']); Route::post('/loginUser', [MainController::class, 'loginUser']); Route::get('/logout', [MainController::class, 'logout']); Route::controller(StripePaymentController::class)->group(function () { Route::get('stripe', 'stripe'); Route::post('stripe', 'stripePost')->name('stripe.post'); });