checkout process - start

This commit is contained in:
elvira
2026-09-08 20:41:49 +03:00
parent 7577426f49
commit 2d85591a43
12 changed files with 923 additions and 6 deletions
+10 -1
View File
@@ -1,6 +1,7 @@
<?php
use App\Http\Controllers\Checkout\CartController;
use App\Http\Controllers\Checkout\CheckoutController;
use Illuminate\Support\Facades\Route;
/*
@@ -19,7 +20,15 @@
->middleware('locale')
->group(function () {
// No standalone cart page — the drawer (checkout::drawer) is the cart.
// The checkout page itself will live here once that slice is built.
Route::get('checkout', [CheckoutController::class, 'show'])
->name('checkout.show');
Route::post('checkout/address', [CheckoutController::class, 'saveAddress'])
->name('checkout.address.save');
Route::post('checkout/shipping-option', [CheckoutController::class, 'selectShippingOption'])
->name('checkout.shipping-option.select');
Route::post('cart/lines', [CartController::class, 'add'])
->name('checkout.cart.add');