Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Shopwire Laravel Package

nickdekruijk/shopwire

View on GitHub
Deep Wiki
Context7

Latest Stable Version Latest Unstable Version Monthly Downloads Total Downloads License

Shopwire

A simple, easy to implement shopping cart and checkout package for Laravel 9 using Livewire.

Installation

To install run the following command:

composer require nickdekruijk/shopwire

Before your run php artisan migrate make sure your Product model is properly setup.

Publish the config file with:

php artisan vendor:publish --tag=config --provider="NickDeKruijk\Shopwire\ShopwireServiceProvider"

Prepare your Product model

Add ShopwireProduct trait:

use NickDeKruijk\Shopwire\Traits\ShopwireProduct;
class Product extends Model
{
    use ShopwireProduct;

If your model is different from the default (App\Models\Product), you can change the model name in the config file.

Afterwards run the migration command: php artisan migrate

Environment

To enable automatic country detection, add the following to your .env file:

LOCATION_TESTING=false

By defaults Shopwire uses Mollie as payment provider, set your Mollie API key in the .env file:

MOLLIE_KEY=test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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 = [
        'shopwire/payment/webhook',
    ];

Logging

You need to make a logging channel called shopwire, add something like this to config/logging.php:

        'shopwire' => [
            'driver' => 'single',
            'path' => storage_path('logs/shopwire.log'),
            'level' => 'debug',
        ],

Admin package integration

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

Some seeds with data to start with

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

Dutch Shipment methods php artisan db:seed --class=NickDeKruijk\\Shopwire\\Seeds\\ShippingDutch

License

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

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky