Register the service provider.
18617
public function register()
    {
        $this->app['themes'] = $this->app->share(function ($app) {
            return new Repository(
                new Finder(),
                $app['config'],
                $app['view'],
                $app['translator'],
                $app['cache.store']
            );
        });

        $this->registerCommands();
    }
886362
public function register()
    {
        $this->registerConnectionServices();
        $this->registerEloquentFactory();
        $this->registerQueueableEntityResolver();

        Model::setConnectionResolver($this->container['db']);
        Model::setEventDispatcher($this->container['events']);
        Model::clearBootedModels();
        Model::observe(InternalObserve::class);
    }
1092450
public function register()
    {
        // register providers
        $this->registerUserProvider();
        $this->registerJWTProvider();
        $this->registerAuthProvider();
        $this->registerStorageProvider();
        $this->registerJWTBlacklist();

        $this->registerClaimFactory();
        $this->registerJWTManager();

        $this->registerJWTAuth();
        $this->registerPayloadValidator();
        $this->registerPayloadFactory();
        $this->registerJWTCommand();

        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'jwt');
    }
639039
public function register()
    {
        $this->registerLockdownConfiguration();
        $this->registerLockdownFacade();
        $this->registerUserProvider();
        $this->registerRoleProvider();
        $this->registerPermissionProvider();
        $this->registerLockdown();
        $this->registerLockdownGuard();
        $this->registerCommands();
    }
248680
public function register()
    {
        parent::register();

        $this->registerConfig();

        $this->registerProvider(Providers\UtilityServiceProvider::class);

        $this->singleton(Contracts\SeoHelper::class, SeoHelper::class);
    }
70773
public function register()
    {
        $this->mergeConfig();

        $this->registerMetadataDriverRegistry();
        $this->registerConnectionFactories();
        $this->registerQueryLogger();
        $this->registerManagerRegistry();
        $this->registerDefaultDocumentManager();
        $this->registerAutoloader();
        $this->registerConsoleCommands();
        $this->registerExtensions();
        $this->registerRepositories();
    }
697777
public function register()
    {
        $this->mergeConfig();
        $this->setupCache();
        $this->setupMetaData();
        $this->setupConnection();
        $this->registerManagerRegistry();
        $this->registerEntityManager();
        $this->registerClassMetaDataFactory();
        $this->registerExtensions();
        $this->registerConsoleCommands();
        $this->registerCustomTypes();
        $this->registerEntityFactory();
        $this->registerProxyAutoloader();

        if ($this->shouldRegisterDoctrinePresenceValidator()) {
            $this->registerPresenceVerifierProvider();
        }
    }
858100
public function register()
    {
        $this->setupConfig();

        $services = config('microservice.services');
        $currentEnv = app()->environment();

        /** @var array $services */
        foreach ($services as $service) {
            if ($service['enabled'] && $this->isInCurrentEnv($currentEnv, $service['environments'])) {
                if (array_get($service, 'config')) {
                    $this->app->configure($service['config']);
                }

                $this->app->register($service['provider']);
            }
        }

        app()->middleware(ConvertEmptyStringsToNull::class);
    }
1360283
public function register()
    {
        $this->registerAliases();
        $this->registerCredentials();
        $this->registerOAuthCredentials();
        $this->registerUrlProvider();
        $this->registerAuthProvider();
    }
313917
public function register()
    {
        $this->app->register('Laracasts\Flash\FlashServiceProvider');
        $this->app->register('Yajra\Datatables\DatatablesServiceProvider');
        $this->app->register('Cartalyst\Sentinel\Laravel\SentinelServiceProvider');
        $this->app->register('Intervention\Image\ImageServiceProvider');
        $this->app->register('Snowfire\Beautymail\BeautymailServiceProvider');

        $this->mergeConfigFrom(
            __DIR__.'/../config/laravel-modules-base.php', 'laravel-modules-base'
        );

        $this->app->booting(function()
        {
            $loader = \Illuminate\Foundation\AliasLoader::getInstance();
            $loader->alias('Sentinel', 'Cartalyst\Sentinel\Laravel\Facades\Sentinel');
        });

        $router = $this->app['router'];
        $router->middleware('permission',\ErenMustafaOzdal\LaravelModulesBase\Middlewares\Permission::class);
        $router->middleware('nested_model',\ErenMustafaOzdal\LaravelModulesBase\Middlewares\NestedModel::class);
        $router->middleware('related_model',\ErenMustafaOzdal\LaravelModulesBase\Middlewares\RelatedModel::class);

        // register services
        $this->registerCollectionService();
        $this->registerPermissionService();

        $this->app->booting(function() {
            $loader = \Illuminate\Foundation\AliasLoader::getInstance();
            $loader->alias('LMBCollection', 'ErenMustafaOzdal\LaravelModulesBase\Facades\Collection');
            $loader->alias('LMBPermission', 'ErenMustafaOzdal\LaravelModulesBase\Facades\Permission');

            // register validation
            $this->registerValidationRules($this->app['validator']);
        });

        // model binding
        $router->model(config('laravel-modules-base.url.province'),  'App\Province');
        $router->model(config('laravel-modules-base.url.county'),  'App\County');
        $router->model(config('laravel-modules-base.url.district'),  'App\District');
        $router->model(config('laravel-modules-base.url.neighborhood'),  'App\Neighborhood');
        $router->model(config('laravel-modules-base.url.postal_code'),  'App\PostalCode');
    }
978879
public function register()
  {
    $middleware = ($this->middleware !== null) ? ['middleware' => $this->middleware] : [];
    $prefix     = ($this->prefix !== null) ? ['prefix' => $this->prefix] : [];
    $domain     = ($this->domain !== null) ? ['domain' => $this->domain] : [];

    Swish::group(array_merge($domain, $middleware, $prefix), function() {
      startphp($this->file);
    });
  }
333925
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'message');

        // Bind facade
        $this->app->bind('message', function ($app) {
            return $this->app->make('Litepie\Message\Message');
        });

        // Bind Message to repository
        $this->app->bind(
            'Litepie\Message\Interfaces\MessageRepositoryInterface',
            \Litepie\Message\Repositories\Eloquent\MessageRepository::class
        );

        $this->app->register(\Litepie\Message\Providers\AuthServiceProvider::class);
        $this->app->register(\Litepie\Message\Providers\EventServiceProvider::class);
        $this->app->register(\Litepie\Message\Providers\RouteServiceProvider::class);
    }
331388
public function register()
    {
        parent::register();

        $this->registerConfig();
        $this->registerSidebarItems();

        $this->registerProviders([
            Providers\AuthorizationServiceProvider::class,
            Providers\EventServiceProvider::class,
            Providers\ViewComposerServiceProvider::class,
            Providers\RouteServiceProvider::class,
            \Arcanedev\LaravelMarkdown\LaravelMarkdownServiceProvider::class,
        ]);
        $this->registerConsoleServiceProvider(Providers\CommandServiceProvider::class);
    }
428284
public function register()
    {
        $loader = AliasLoader::getInstance();

        // Register aliases
        foreach ($this->getAliases() as $alias => $class) {
            $loader->alias($alias, $class);
        }

        // Register service containers
        foreach ($this->getServiceContainers() as $abstract => $concrete) {
            $this->app->singleton($abstract, $concrete);
        }
    }
843845
public function register()
    {
        //Load helpers
        load_module_helpers(__DIR__);

        //Merge configs
        $configs = split_files_with_basename($this->app['files']->glob(__DIR__ . '/../../config/*.php'));

        foreach ($configs as $key => $row) {
            $this->mergeConfigFrom($row, $key);
        }

        $this->app->register(RouteServiceProvider::class);
        $this->app->register(BootstrapModuleServiceProvider::class);
        $this->app->register(ViewComposerServiceProvider::class);
    }
264708
public function register()
    {
        $this->registerRouter();
        $this->registerUrlGenerator();
        $this->registerRedirector();
        $this->registerPsrRequest();
        $this->registerPsrResponse();
        $this->registerResponseFactory();
        $this->registerControllerDispatcher();
    }
804318
public function register()
    {
        parent::register();

        $this->registerConfig();

        $this->registerLogViewer();
        $this->registerAliases();

        $this->registerProviders([
            Providers\UtilitiesServiceProvider::class,
            Providers\RouteServiceProvider::class,
        ]);
        $this->registerConsoleServiceProvider(Providers\CommandsServiceProvider::class);
    }