File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 66use Illuminate \Support \ServiceProvider ;
77use OhMyBrew \ShopifyApp \Console \WebhookJobMakeCommand ;
88use 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 /**
You can’t perform that action at this time.
0 commit comments