src/ShopifyApp/ShopifyAppProvider.php
public function boot()
    {
        // Routes
        $this->loadRoutesFrom(__DIR__.'/resources/routes.php');

        // Views
        $this->loadViewsFrom(__DIR__.'/resources/views', 'shopify-app');

        // Config publish
        $this->publishes([
            __DIR__.'/resources/config/shopify-app.php' => "{$this->app->configPath()}/shopify-app.php",
        ], 'shopify-config');

        // Database migrations
        // @codeCoverageIgnoreStart
        if (Config::get('shopify-app.manual_migrations')) {
            $this->publishes([
                __DIR__.'/resources/database/migrations' => "{$this->app->databasePath()}/migrations",
            ], 'shopify-migrations');
        } else {
            $this->loadMigrationsFrom(__DIR__.'/resources/database/migrations');
        }
        // @codeCoverageIgnoreEnd

        // Job publish
        $this->publishes([
            __DIR__.'/resources/jobs/AppUninstalledJob.php' => "{$this->app->path()}/Jobs/AppUninstalledJob.php",
        ], 'shopify-jobs');

        // Shop observer
        $shopModel = Config::get('shopify-app.shop_model');
        $shopModel::observe(ShopObserver::class);

        // Middlewares
        $this->app['router']->aliasMiddleware('auth.shop', AuthShop::class);
        $this->app['router']->aliasMiddleware('auth.webhook', AuthWebhook::class);
        $this->app['router']->aliasMiddleware('auth.proxy', AuthProxy::class);
        $this->app['router']->aliasMiddleware('billable', Billable::class);
    }
public function boot()
    {
        // Routes
        $this->loadRoutesFrom(__DIR__.'/resources/routes.php');

        // Views
        $this->loadViewsFrom(__DIR__.'/resources/views', 'shopify-app');

        // Config publish
        $this->publishes([
            __DIR__.'/resources/config/shopify-app.php' => "{$this->app->configPath()}/shopify-app.php",
        ], 'shopify-config');

        // Database migrations
        // @codeCoverageIgnoreStart
        if (Config::get('shopify-app.manual_migrations')) {
            $this->publishes([
                __DIR__.'/resources/database/migrations' => "{$this->app->databasePath()}/migrations",
            ], 'shopify-migrations');
        } else {
            $this->loadMigrationsFrom(__DIR__.'/resources/database/migrations');
        }
        // @codeCoverageIgnoreEnd

        // Job publish
        $this->publishes([
            __DIR__.'/resources/jobs/AppUninstalledJob.php' => "{$this->app->path()}/Jobs/AppUninstalledJob.php",
        ], 'shopify-jobs');

        // Shop observer
        $shopModel = Config::get('shopify-app.shop_model');
        $shopModel::observe(ShopObserver::class);

        // Middlewares
        $this->app['router']->aliasMiddleware('auth.shop', AuthShop::class);
        $this->app['router']->aliasMiddleware('auth.webhook', AuthWebhook::class);
        $this->app['router']->aliasMiddleware('auth.proxy', AuthProxy::class);
        $this->app['router']->aliasMiddleware('billable', Billable::class);
    }
public function boot ( ) { // Routes $ this -> loadRoutesFrom ( __DIR__ . '/resources/routes.php' ) ; // Views $ this -> loadViewsFrom ( __DIR__ . '/resources/views' , 'shopify-app' ) ; // Config publish $ this -> publishes ( [ __DIR__ . '/resources/config/shopify-app.php' => "{$this->app->configPath()}/shopify-app.php" , ] , 'shopify-config' ) ; // Database migrations // @codeCoverageIgnoreStart if ( Config :: get ( 'shopify-app.manual_migrations' ) ) { $ this -> publishes ( [ __DIR__ . '/resources/database/migrations' => "{$this->app->databasePath()}/migrations" , ] , 'shopify-migrations' ) ; } else { $ this -> loadMigrationsFrom ( __DIR__ . '/resources/database/migrations' ) ; } // @codeCoverageIgnoreEnd // Job publish $ this -> publishes ( [ __DIR__ . '/resources/jobs/AppUninstalledJob.php' => "{$this->app->path()}/Jobs/AppUninstalledJob.php" , ] , 'shopify-jobs' ) ; // Shop observer $ shopModel = Config :: get ( 'shopify-app.shop_model' ) ; $ shopModel :: observe ( ShopObserver :: class ) ; // Middlewares $ this -> app [ 'router' ] -> aliasMiddleware ( 'auth.shop' , AuthShop :: class ) ; $ this -> app [ 'router' ] -> aliasMiddleware ( 'auth.webhook' , AuthWebhook :: class ) ; $ this -> app [ 'router' ] -> aliasMiddleware ( 'auth.proxy' , AuthProxy :: class ) ; $ this -> app [ 'router' ] -> aliasMiddleware ( 'billable' , Billable :: class ) ; }
Bootstrap the application services.

@return void
Bootstrap the application services .