Register any application services.

@return void
967172
public function register()
    {
        $this->app->singleton('command.models.generate', function($app) {
            $db = $app['db.connection'];
            $driverClass = __NAMESPACE__.'\Drivers\\'.ucfirst($db->getDriverName()).'Driver';
            $driver = new $driverClass($db->getPdo());

            $builder = new Builder($app['config'], $driver);

            return new Console\GenerateCommand($builder);
        });

        $this->commands([
            'command.models.generate'
        ]);
    }
689534
public function register()
    {
        /* Services */
        $this->app->singleton(
            \LaravelRocket\Foundation\Services\MailServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\MailService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\ImageServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\ImageService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\LanguageServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\LanguageService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\SlackServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\SlackService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\FileUploadServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\FileUploadService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\FileUploadS3ServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\FileUploadS3Service::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\FileUploadLocalServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\FileUploadLocalService::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Services\ExportServiceInterface::class,
            \LaravelRocket\Foundation\Services\Production\ExportService::class
        );

        /* Helpers */
        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\DateTimeHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\DateTimeHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\LocaleHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\LocaleHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\URLHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\URLHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\CollectionHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\CollectionHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\StringHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\StringHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\PaginationHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\PaginationHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\TypeHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\TypeHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\RedirectHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\RedirectHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\DataHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\DataHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\FileHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\FileHelper::class
        );

        $this->app->singleton(
            \LaravelRocket\Foundation\Helpers\ArrayHelperInterface::class,
            \LaravelRocket\Foundation\Helpers\Production\ArrayHelper::class
        );

        //Commands
        $this->app->singleton('command.rocket.export.table', function($app) {
            return new ExportTableToFile($app['files']);
        });

        $this->app->singleton('command.rocket.import.file', function($app) {
            return new ImportFileToTable($app['files']);
        });

        $this->app->singleton('command.rocket.set.name', function($app) {
            return new SetAppName($app['files']);
        });

        $this->commands('command.rocket.export.table', 'command.rocket.import.file', 'command.rocket.set.name');
    }
410917
public function register()
    {
        $this->registerKernel();

        $this->registerResponse();

        $this->registerUrls();

        $this->registerRedirect();

        $this->registerSession();

        $this->registerCookie();

        $this->registerRouting();
    }
722152
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'self-diagnosis');

        $this->app->bind('command.selfdiagnosis', SelfDiagnosisCommand::class);

        $this->commands([
            'command.selfdiagnosis',
        ]);
    }
407516
public function register()
    {
        parent::register();

        $this->registerConfig();
        $this->registerTransManager();
        $this->registerTransChecker();
        $this->registerLangPublisher();

        $this->registerProvider(Providers\TranslationServiceProvider::class);
        $this->registerConsoleServiceProvider(Providers\CommandServiceProvider::class);
    }
1308615
public function register()
    {
        foreach ($this->modules as $module)
        {
            $module->register();
        }
        $modules = ModuleModel::where('module_status', 1)->get();

        foreach ($modules as $module)
        {
            if ($module->module_is_installed)
            {
                $this->app['events']->fire('modules.install.'.$module->module_name, null);
                $module->module_is_installed = 0;
            }
            if ($module->module_is_updated)
            {
                $this->app['events']->fire('modules.update.'.$module->module_name, null);
                $module->module_is_updated = 0;
            }
            if ($module->module_is_enabled)
            {
                $this->app['events']->fire('modules.enable.'.$module->module_name, null);
                $module->module_is_enabled = 0;
            }
            $module->save();
        }
    }
136754
public function register()
    {
        parent::register('system');

        $this->registerSingletons();
        $this->registerPrivilegedActions();

        /*
         * Register all plugins
         */
        PluginManager::instance()->registerAll();

        $this->registerConsole();
        $this->registerErrorHandler();
        $this->registerLogging();
        $this->registerTwigParser();
        $this->registerMailer();
        $this->registerMarkupTags();
        $this->registerAssetBundles();
        $this->registerValidator();
        $this->registerGlobalViewVars();

        /*
         * Register other module providers
         */
        foreach (Config::get('cms.loadModules', []) as $module) {
            if (strtolower(trim($module)) != 'system') {
                App::register('\\' . $module . '\ServiceProvider');
            }
        }

        /*
         * Backend specific
         */
        if (App::runningInBackend()) {
            $this->registerBackendNavigation();
            $this->registerBackendReportWidgets();
            $this->registerBackendPermissions();
            $this->registerBackendSettings();
        }
    }
613825
public function register()
    {
        $this->registerFormGroupDirective();
        $this->registerLabelDirective();
        $this->registerStaticDirective();

        // Form fields
        $this->registerCheckboxDirective();
        $this->registerDatePickerDirective();
        $this->registerTimePickerDirective();
        $this->registerInputDirective();
        $this->registerSelectDirective();
        $this->registerTextareaDirective();

        // Buttons
        $this->registerCreateButtonDirective();
        $this->registerEditButtonDirective();
        $this->registerShowButtonDirective();
        $this->registerSaveButtonDirective();
        $this->registerDeleteButtonDirective();
        $this->registerBackButtonDirective();
    }
1358157
public function register()
    {
        $this->setupCache();
        $this->mergeConfig();
        $this->setupMetaData();
        $this->setupConnection();
        $this->registerManagerRegistry();
        $this->registerEntityManager();
        $this->registerClassMetaDataFactory();
        $this->registerExtensions();
        $this->registerCustomTypes();
        $this->registerPresenceVerifier();
        $this->registerConsoleCommands();
    }
1158917
public function register()
  {
    $events = $this->register;

    foreach($events as $name => $event) {
      Events::listen($name, $event);
    }
  }
340848
public function register()
    {
        $this->registerPublisher();

        $this->registerRoleEloquent();

        $this->registerComponentEloquent();

        $this->registerActionComponentEloquent();

        $this->registerUserRoleEloquent();

        $this->registerComponentPermissionEloquent();

        $this->registerUserEloquent();
    }
1188040
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/../config/server-monitor.php', 'server-monitor');

        $this->app['events']->subscribe(\EricMakesStuff\ServerMonitor\Notifications\EventHandler::class);

        $this->app->bind('command.monitor:run', RunCommand::class);

        $this->commands([
            'command.monitor:run',
        ]);

        $this->app->singleton(ConsoleOutput::class);
    }
1166248
public function register(): void
    {
        $this->app->bind(\Assurrussa\GridView\Interfaces\GridInterface::class, function ($app) {
            /** @var Container $app */
            return $app->make(GridView::class);
        });
        $this->app->alias(\Assurrussa\GridView\GridView::class, GridView::NAME);
        $this->app->alias(\Assurrussa\GridView\GridView::class, \Assurrussa\GridView\Interfaces\GridInterface::class);
    }
621618
public function register()
    {
        $this->registerRevisionRepository();
        $this->registerUserRepository();
        $this->registerGroupRepository();
        $this->registerCredentials();

        $this->registerLoginController();
        $this->registerRegistrationController();
        $this->registerResetController();
        $this->registerActivationController();
    }
52589
public function register()
    {
        $this->registerInstallCommand();
        $this->registerInfoCommand();
        $this->registerSeedCommand();
        $this->registerCacheCommand();
        $this->registerHookCommand();
    }
21747
public function register()
    {

        $app = $this->app;

        if (true === $this->app['config']->get('database.autostart')) {

            $configs = Config::get('database');
            $connection = $configs['connection'];
            $connectionConfigs = Arr::get($configs['connections'], $connection, []);

            Query::configs($connectionConfigs);

            $this->singleton(
                'database.base',
                function () {
                    return new Database();
                }
            );

            $this->singleton(Base::class, function () {
                return App::make('database.base');
            });
            

        }
    }
1323112
public function register()
    {
        parent::register();

        $this->registerConfig();

        $this->singleton(Contracts\Http\JsonResponse::class, Http\JsonResponder::class);
    }