nickdekruijk / webshop
Add a simple webshop to your Laravel project
Requires
- php: ^8.1
- bobey/geoip2-geolite2-composer: ^1.6
- geoip2/geoip2: ^2.10
- laravel/framework: ^11.0
- mledoze/countries: dev-master#56b7186
- mollie/laravel-mollie: ^3.0
README
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.