Register Laravel Socialite service.
426712
private function registerLaravelSocialiteService()
    {
        $this->app->bind(\Acacha\LaravelSocial\Services\LaravelSocialiteService::class, function ($app) {
            return new LaravelSocialiteService(
                new \Acacha\Filesystem\Compiler\StubFileCompiler(),
                new \Acacha\Filesystem\Filesystem()
            );
        });
    }
1213158
protected function registerServices()
    {
        foreach (Antvel::bindings() as $key => $value) {
            is_numeric($key)
                ? $this->app->singleton($value)
                : $this->app->singleton($key, $value);
        }
    }
375965
public function register() {
        $this->larapackage('larakit/laravel-larakit', 'larakit', 'public');
        $this->app->bind('larakit:env',
            function ($app) {
                return new \Larakit\Command\Env();
            });
        $this->app->bind('larakit:readiness',
            function ($app) {
                return new \Larakit\Command\Readiness();
            });
        $this->app->bind('larakit:app-provider',
            function ($app) {
                return new \Larakit\Command\AppProvider();
            });
        $this->app->bind('larakit:app-alias',
            function ($app) {
                return new \Larakit\Command\AppAlias();
            });
        $this->app->bind('larakit:app-db',
            function ($app) {
                return new \Larakit\Command\AppDb();
            });
        $this->app->bind('larakit:app-migrate',
            function ($app) {
                return new \Larakit\Command\AppMigrate();
            });
        $this->commands([
            'larakit:env',
            'larakit:app-provider',
            'larakit:app-alias',
            'larakit:app-db',
            'larakit:readiness',
            'larakit:app-migrate',
        ]);
    }
302298
public function register()
    {
        if ($this->isLumen()) {
            $this->app->configure('laravel-facebook-sdk');
        }
        $this->mergeConfigFrom(__DIR__.'/../config/laravel-facebook-sdk.php', 'laravel-facebook-sdk');

        // Main Service
        $this->app->bind('SammyK\LaravelFacebookSdk\LaravelFacebookSdk', function ($app) {
            $config = $app['config']->get('laravel-facebook-sdk.facebook_config');

            if (! isset($config['persistent_data_handler']) && isset($app['session.store'])) {
                $config['persistent_data_handler'] = new LaravelPersistentDataHandler($app['session.store']);
            }

            if (! isset($config['url_detection_handler'])) {
                if ($this->isLumen()) {
                    $config['url_detection_handler'] = new LumenUrlDetectionHandler($app['url']);
                } else {
                    $config['url_detection_handler'] = new LaravelUrlDetectionHandler($app['url']);
                }
            }

            return new LaravelFacebookSdk($app['config'], $app['url'], $config);
        });
    }
927491
public function register()
    {
        $loader = \Illuminate\Foundation\AliasLoader::getInstance();

        $loader->alias('Activity', \App\Facades\Activity::class);

        $this->app->singleton('ActivityService', function ($app) {
            return app(\App\Services\ActivityService::class);
        });
    }
51538
public function register()
    {
        foreach ($this->postTypes as $postType) {
            $this->app['posts.types']->register($postType);
            $this->app['filters']->listen(
                'theme_' . strtolower(class_basename($postType)) . '_templates',
                function ($page_templates) use ($postType) {
                    $laraPressTemplates = [];

                    foreach ($postType::getAvailableTemplates() as $key => $template) {
                        if (is_int($key)) {
                            $key = $template;
                            $template = ucwords(str_replace('-', ' ', $template));
                        }
                        $laraPressTemplates[$key] = $template;
                    }

                    return array_merge($page_templates, $laraPressTemplates);
                }
            );
        }
    }
93836
protected static function register()
	{
		Route::group(['prefix' => static::$prefix, 'middleware' => static::$middleware, 'namespace' => static::$namespace], function()
		{
			// Show User account overview.
			Route::get('/', 'ShowOverview\Responder')->name('account.overview');

			// Show edit User account form.
			Route::get('edit', 'ShowEdit\Responder')->name('account.edit');

			// Update a User account.
			Route::put('edit', 'Update\Responder')->name('account.update');
		});
	}
110521
public function register()
	{
		$this->laraclipNull = sha1(time());

		if (!defined('LARACLIP_NULL')) {
			define('LARACLIP_NULL', $this->laraclipNull);
		}
		
		$this->registerResizer();
		$this->registerIOWrapper();
		$this->registerConfig();
		$this->registerValidator();
		$this->registerInterpolator();
		$this->registerGD();
		$this->registerImagick();
		$this->registerGmagick();
		$this->registerFilesystemStorage();
		$this->registerS3Storage();
		$this->registerS3ClientManager();
		$this->registerAttachment();
		
		// commands
		$this->registerLaraClipFastenCommand();
		$this->registerLaraClipRefreshCommand();
		
		// services
		$this->registerImageRefreshService();

		$this->commands('laraclip.fasten');
		$this->commands('laraclip.refresh');
	}
1196922
public function register()
    {
        if ($this->app->environment() !== 'production') {
            $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
        }
        // ...
    }
1123574
public function register()
    {
        $this->app->register(ScaffoldInterfaceEventServiceProvider::class);

        $this->app->singleton('laravelRequest', \Illuminate\Http\Request::class);

        $this->app->singleton('Request', \Amranidev\ScaffoldInterface\Http\Request::class);

        $this->app->singleton('Scaffold', \Amranidev\ScaffoldInterface\Scaffold::class);

        $this->app->singleton('Datasystem', function ($app) {
            return new \Amranidev\ScaffoldInterface\Datasystem\Datasystem($app->make('Request')->getRequest());
        });

        $this->app->singleton('Parser', function ($app) {
            return new \Amranidev\ScaffoldInterface\Parsers\Parser($app->make('Request')->getRequest());
        });

        $this->app->singleton('Indenter', \Gajus\Dindent\Indenter::class);

        $this->app->singleton('Path', \Amranidev\ScaffoldInterface\Filesystem\Path::class);

        $this->app->singleton('Generator', \Amranidev\ScaffoldInterface\Generators\Generator::class);

        $this->app->singleton('ModelGenerate', \Amranidev\ScaffoldInterface\Generators\ModelGenerate::class);

        $this->app->singleton('ViewGenerate', \Amranidev\ScaffoldInterface\Generators\ViewGenerate::class);

        $this->app->singleton('MigrationGenerate', \Amranidev\ScaffoldInterface\Generators\MigrationGenerate::class);

        $this->app->singleton('ControllerGenerate', \Amranidev\ScaffoldInterface\Generators\ControllerGenerate::class);

        $this->app->singleton('RouteGenerate', \Amranidev\ScaffoldInterface\Generators\RouteGenerate::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);
        }
    }
285580
public function register()
	{
		$this->app['authClient'] = $this->app->share(function($app)
                {
                    return new AuthClient;
                });
                
                $this->app['userClient'] = $this->app->share(function($app)
                {
                    return new UserClient;
                });

                $this->app['client'] = $this->app->share(function($app)
                {
                    return new Client;
                });
                
                $this->app['solariumClient'] = $this->app->share(function($app)
                {
                    return new SolariumClientImpl();
                });
                
                // Shortcut so developers don't need to add an Alias in app/config/app.php
                $this->app->booting(function()
                {
                    $loader = \Illuminate\Foundation\AliasLoader::getInstance();
                    $loader->alias('AuthClient', 'Ademes\Core\Facades\AuthClient');
                    $loader->alias('UserClient', 'Ademes\Core\Facades\UserClient');
                    $loader->alias('HttpClient', 'Ademes\Core\Facades\HttpClient');
                    $loader->alias('SolariumClient', 'Ademes\Core\Facades\SolariumClient');
                });
	}
18634
public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/config/laravelPnotify.php', 'laravelPnotify'
        );

        $this->app->bind(
            'Jleon\LaravelPnotify\SessionStore',
            'Jleon\LaravelPnotify\LaravelSessionStore'
        );

        $this->app->bind(
            'Jleon\LaravelPnotify\ConfigRepo',
            'Jleon\LaravelPnotify\LaravelConfigRepo'
        );

        $this->app->bind('notify', function()
        {
            return $this->app->make('Jleon\LaravelPnotify\Notifier');
        });
    }
1296022
public function register()
    {
        // View Composers
        View::composer(
            'combine::laravel-auth-spa',
            function ($view) {
                $errors = null;
                if (!is_null(session('errors'))) {
                    foreach (session('errors')->getMessages() as $key => $message) {
                        $errors[$key] = $message;
                    }
                }
                $posted = null;
                if (!empty(request()->old('email'))) {
                    $posted['email'] = request()->old('email');
                }
                if (!empty(request()->old('name'))) {
                    $posted['name'] = request()->old('name');
                }
                $view->with(
                    [
                    'posted' => json_encode($posted),
                    'serverErrors' => json_encode($errors),
                    ]
                );
            }
        );
    }
993701
private function registerLaratrust()
    {
        $this->app->bind('laratrust', function ($app) {
            return new Laratrust($app);
        });

        $this->app->alias('laratrust', 'Laratrust\Laratrust');
    }
693270
public function register()
    {
        $this->mergeConfigFrom(__DIR__ . '/../config/translator.php', 'translator');

        parent::register();
        $this->registerCacheRepository();
        $this->registerFileLoader();
        $this->registerCacheFlusher();
        $this->app->singleton('translation.uri.localizer', UriLocalizer::class);
        $this->app[\Illuminate\Routing\Router::class]->aliasMiddleware('localize', TranslationMiddleware::class);
        // Fix issue with laravel prepending the locale to localize resource routes:
        $this->app->bind('Illuminate\Routing\ResourceRegistrar', ResourceRegistrar::class);
    }
409633
public function register() {
        include __DIR__.'/../routes.php';
        $config = __DIR__ . '/../config/config.php';
        $this->mergeConfigFrom($config, 'larakit.lk-adminlte');
        $this->publishes([
            $config => config_path('larakit/lk-adminlte/config.php'),
        ]);
        $this->loadViewsFrom(__DIR__.'/../views', 'lk-adminlte');
        if(\Request::is('admin*')){
            \LaraPage::body()->addClass(config('larakit.lk-adminlte.body_class'));
        }
    }