Installs

0

Version

unknown

License

unknown

Installation

composer require laravel-shield/shopify

Usage

After installing add the following configuration to your config/shield.php file:

'services' => [
    'shopify' => [
        'driver' => \Shield\Shopify\Shopify::class,
        'options' => [
            'token' => 'your-webhook-token',
        ]
    ]
]

You can now add the middleware to your routes like so:

Route::middleware('shield:shopify')->post('/hooks/shopify', '[email protected]');