nickdekruijk/webshop

Add a simple webshop to your Laravel project

3.5.5 2024-02-22 12:22 UTC

This package is auto-updated.

Last update: 2024-04-22 12:41:09 UTC


README

Latest Stable Version Latest Unstable Version Monthly Downloads Total Downloads License

Webshop

Add a simple webshop to your Laravel project

Installation

composer require nickdekruijk/webshop

Publish the config file with

php artisan vendor:publish --tag=config --provider="NickDeKruijk\Webshop\ServiceProvider"

Product model/table

You will need a working Product model and database table. See the sample migration and model in the examples folder.

If your Product model differs from App\Product then change the product_model value in your config/webshop.php file.

More info coming soon...

Admin package integration

To manage products/vat/coupons etc with the nickdekruijk/admin package add the modules as described in this example file to your config/admin.php file.

Webhooks and Csrf

To make the payment provider webhooks work you may need to update the $except array in app\Http\Middleware\VerifyCsrfToken.php

    protected $except = [
        'webshop/webhook-payment',
    ];

Some seeds with data to start with

Dutch VAT php artisan db:seed --class=NickDeKruijk\\Webshop\\Seeds\\VatDutch

Dutch Discounts php artisan db:seed --class=NickDeKruijk\\Webshop\\Seeds\\DiscountsDutch

License

Admin is open-sourced software licensed under the MIT license.