Code Monkey home page Code Monkey logo

digital-e-commerce-store-with-stripe-checkout's Introduction

Digital E-Commerce Store with Stripe Checkout

Demo Project for A Digital E-Commerce Store with Stripe Checkout

Controllers

Web Routes

<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\CartController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\OrderController;
use App\Http\Controllers\ProductController;
use App\Http\Controllers\WebhookController;
use App\Http\Controllers\CheckoutController;
use App\Http\Controllers\CartProductController;
use App\Http\Controllers\ProductDownloadController;

Route::get('/', HomeController::class)->name('home');

Route::get('/products/{product:slug}', [ProductController::class, 'show'])
->name('products.show');

Route::get('/products/downloads/{product:slug}', [ProductDownloadController::class, 'show'])
->name('products.downloads.show');

Route::post('/cart/products', [CartProductController::class, 'store'])
->name('cart.products.store');

Route::delete('/cart/products/{product:slug}', [CartProductController::class, 'destroy'])
->name('cart.products.destroy');

Route::get('/cart', [CartController::class, 'index'])
->name('cart.index');

Route::get('/checkout', [CheckoutController::class, 'index'])
->name('checkout.index');

Route::get('/orders', [OrderController::class, 'index'])
->name('orders.index');

Route::post('/stripe/webhook', [WebhookController::class, 'handleWebhook']);


require  __DIR__.'/auth.php';

digital-e-commerce-store-with-stripe-checkout's People

Contributors

g4bbar avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.