Skip to content

Commit d34aaef

Browse files
committed
Merged gnikyt#153 by @amosmos
1 parent 0122685 commit d34aaef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ShopifyApp/ShopifyAppProvider.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
use Illuminate\Support\ServiceProvider;
77
use OhMyBrew\ShopifyApp\Console\WebhookJobMakeCommand;
88
use OhMyBrew\ShopifyApp\Observers\ShopObserver;
9+
use OhMyBrew\ShopifyApp\Middleware\AuthShop;
10+
use OhMyBrew\ShopifyApp\Middleware\AuthWebhook;
11+
use OhMyBrew\ShopifyApp\Middleware\AuthProxy;
12+
use OhMyBrew\ShopifyApp\Middleware\Billable;
913

1014
/**
1115
* This package's provider for Laravel.
@@ -43,6 +47,12 @@ public function boot()
4347
// Shop observer
4448
$shopModel = Config::get('shopify-app.shop_model');
4549
$shopModel::observe(ShopObserver::class);
50+
51+
// Middlewares
52+
$this->app['router']->aliasMiddleware('auth.shop', AuthShop::class);
53+
$this->app['router']->aliasMiddleware('auth.webhook', AuthWebhook::class);
54+
$this->app['router']->aliasMiddleware('auth.proxy', AuthProxy::class);
55+
$this->app['router']->aliasMiddleware('billable', Billable::class);
4656
}
4757

4858
/**

0 commit comments

Comments
 (0)