Product pages
Full-bleed image gallery, a lightbox with zoom and pan, and size selection by waist and inseam that only offers combinations in stock.
Case study · Personal project · E-commerce
A complete denim e-commerce store I designed and built on my own — from the product catalogue and Stripe checkout to returns, reviews, emails and a full admin panel.
I wanted a project that covers everything a small online shop actually needs — not just a product list and a cart, but payments, discount codes, order tracking, returns, reviews, emails and an admin panel to run it all.
It's built on the newest Laravel stack: Laravel 13, Livewire 4 single-file page components for every customer-facing page, and Filament 5 for the admin side.
Full-bleed image gallery, a lightbox with zoom and pan, and size selection by waist and inseam that only offers combinations in stock.
Discount codes, free shipping over $150, GST worked out on the total, then payment on Stripe's secure checkout page.
Registration, email verification, password reset, saved addresses, order history, a wishlist and account deletion requests.
Order emails at every step, a PDF invoice, return requests within 30 days, and product reviews.
Customer → App
Details are validated, and an optional discount code is checked — active, not expired, under its usage limit and not already used by that email.
App
The order, line items and any discount usage are recorded before the customer leaves the site.
App → Stripe
A Stripe Checkout session is created, with a one-off Stripe coupon if a discount was applied.
Customer ↔ Stripe
Card details are entered on Stripe's own page, so they never touch my server.
Stripe → App
Stripe calls a webhook. The signature is verified before anything is trusted, then the order is marked paid.
App → Customer
The status change triggers an order confirmation email with a PDF invoice attached.
An order moves through pending → paid → ready to ship → shipped → delivered. Model events watch for each change, stamp the time it happened and send the matching email, so the admin only ever has to update one field.
Filament admin
Checkout is rate-limited per IP (8 attempts per 10 minutes) to stop scripted attempts with stolen cards.
An atomic cache lock per session means a fast double-click can only ever create one order.
Every Stripe webhook's signature is checked before an order can be marked as paid.
Login, discount codes and email-verification links are all throttled, and verification links are signed.
try {
$event = Webhook::constructEvent(
$request->getContent(),
$request->header('Stripe-Signature'),
config('services.stripe.webhook_secret'),
);
} catch (SignatureVerificationException $e) {
Log::warning('Stripe webhook signature verification failed: ' . $e->getMessage());
return response('Invalid signature', 400);
}
Route::livewire().