Register the view environment.

@return void
544446
public function registerFactory()
    {
        $this->app->singleton('view', function ($app) {
            // Next we need to grab the engine resolver instance that will be used by the
            // environment. The resolver will be used by an environment to get each of
            // the various engine implementations such as plain PHP or Blade engine.
            $resolver = $app['view.engine.resolver'];

            $finder = $app['view.finder'];

            $factory = $this->createFactory($resolver, $finder, $app['events']);

            // We will also set the container instance on this view environment since the
            // view composers may be classes registered in the container, which allows
            // for great testable, flexible composers for the application developer.
            $factory->setContainer($app);

            $factory->share('app', $app);

            return $factory;
        });
    }
1094358
protected function registerViewNamespace()
    {
        $viewPath = __DIR__ . '/../../views';
        $this->loadViewsFrom($viewPath, 'fluxbb');

        // Add another namespace for localized mail templates
        $locale = $this->app['config']['app.locale'];
        $mailPath = __DIR__ . '/../../lang/' . $locale . '/mail/';
        $this->loadViewsFrom($mailPath, 'fluxbb:mail');
    }
860068
public function register ()
    {
        $callback = array($this, 'display');
        foreach ($this->screens as $screen) {
            $id       = $this->getPropertyForScreen($screen, $this->id);
            $title    = $this->getPropertyForScreen($screen, $this->title);
            $context  = $this->getPropertyForScreen($screen, $this->context);
            $priority = $this->getPropertyForScreen($screen, $this->priority);
            add_meta_box($id, $title, $callback, $screen, $context, $priority);
        }
    }
511576
public function registerViews()
    {
        $viewPath = resource_path('views/modules/core');

        $sourcePath = __DIR__.'/../resources/views';

        $this->publishes(
            [
                $sourcePath => $viewPath
            ],
            'views'
        );

        $this->loadViewsFrom(array_merge(array_map(function ($path) {
            return $path . '/modules/core';
        }, \Config::get('view.paths')), [$sourcePath]), 'core');
    }
176140
public function register() {
        $this->loadConfiguration();

        /** Register language repository . */
        $this->app->bind('lang-db-repo', function() {
            return new LanguageRepository(
                new Language()
            );
        });

        /** Register translations repository . */
        $this->app->bind('translations-db-repo', function() {
            return new TranslationsRepository(
                new Translation()
            );
        });

        /** Register driver manager */
        $this->app->bind('driver-translator-manager', function() {
            return (new Manager(
                config('laravel-translator')
            ));
        });

        /** Register translator . */
        $this->app->singleton('laravel-translator', function($app) {
            return new Translator(
                config('laravel-translator'),
                $app['driver-translator-manager']
            );
        });
    }
1086407
protected function registerConfig()
    {
        $configPath = __DIR__ . '/../config/handlebars.php';

        $this->mergeConfigFrom($configPath, 'handlebars');

        $this->publishes([$configPath => config_path('handlebars.php')], 'laravel-handlebars');
    }
687417
public function boot()
    {
        /** @var \Illuminate\View\Factory $view */
        $view   = $this->app['view'];
        $finder = $view->getFinder();
        $hints  = $finder->getHints();
        $view->setFinder($this->app['themes.view.finder']);
        foreach ($hints as $namespace => $path) {
            $view->addNamespace($namespace, $path);
        }

        $this->registerConfig();
        $this->registerViews();
        $this->registerLang();
        $this->registerRoute();

        $this->registerAdminTheme();

        /** @var \Yajra\CMS\Themes\Repositories\Repository $themes */
        $themes = $this->app['themes'];
        $themes->scan();
    }
1093844
public function register()
    {
        $this->loadViewsFrom(__DIR__.'/resources/views/', $this->_packageTag);
        $this->mergeConfigFrom(__DIR__.'/config/exceptions.php', $this->_packageTag);
        $this->publishFiles();
    }
1047812
public function registerViewFinder()
	{
		$me = $this;
		$this->container->bindShared('view.finder', function($app) use ($me)
		{
			$paths = $me->viewPaths;

			return new FileViewFinder($app['files'], $paths);
		});
	}
102192
public function registerViewComposerData()
    {
        View::composer('avored-ecommerce::layouts.left-nav', AdminNavComposer::class);
        View::composer('avored-ecommerce::site-currency._fields', SiteCurrencyFieldsComposer::class);
        View::composer(['avored-ecommerce::category._fields'], CategoryFieldsComposer::class);
        View::composer(['avored-ecommerce::admin-user._fields'], AdminUserFieldsComposer::class);
        View::composer(['avored-ecommerce::product.create',
                        'avored-ecommerce::product.edit',
                        ], ProductFieldsComposer::class);
    }
46501
public function boot()
    {
        // routs
        if (!$this->app->routesAreCached()) {
            require $this->moduleDir('routes/platformAdmin-routes.php');
        }

        // register views int the form of platformAdmin::home
        $this->loadViewsFrom($this->moduleDir('public/views'), 'platformAdmin');

        // register vendor resources
        $this->publishes([
            $this->moduleDir('public/resources') => public_path('vendor/platformAdmin'),
        ], 'public');

        $this->publishes([
            $this->moduleDir('migrations') => database_path('migrations'),
        ], 'migrations');

    }
620368
public function boot()
    {
        if ( ! $this->app->environment('production'))
        {
            $this->publishes([
                __DIR__ . '/resources/config.php' => config_path('tracker.php')
            ]);

            $this->publishes([
                __DIR__ . '/migrations/' => database_path('/migrations')
            ], 'migrations');
        }
    }
300650
public function register()
    {
        $this->commands([
            Commands\SetEnv::class,
            Commands\GetEnv::class,
            Commands\DeleteEnv::class,
            Commands\ListEnv::class,
        ]);
    }
1205461
protected function registerView()
    {
        $this->app['generate.view'] = $this->app->share(function($app)
        {
            $generator = $this->app->make('Way\Generators\Generator');

            return new ViewGeneratorCommand($generator);
        });

        $this->commands('generate.view');
    }
1164661
public function register()
    {
        $this->loadRoutesFrom(__DIR__.'/routes/web.php');
        $this->loadViewsFrom(__DIR__.'/resources/views/', 'laravel2step');
        $this->loadMigrationsFrom(__DIR__.'/database/migrations');
        $this->mergeConfigFrom(__DIR__.'/config/laravel2step.php', 'laravel2step');
        $this->publishFiles();
    }
1087315
public function boot()
    {

        $this->loadViewsFrom(realpath(__DIR__.'/views'), 'entrance');
        $this->setupRoutes();
        // this  for conig
                $this->publishes([
                        __DIR__.'/config/entrance.php' => config_path('entrance.php'),
                        __DIR__.'/database/migrations' => database_path('migrations'),
                        __DIR__.'/database/seeds' => database_path('seeds'),
                        //__DIR__.'/models' => app_path(),
                        //__DIR__.'/views/emails' => base_path('resources/views/intothesource/entrance/emails'),
                        //__DIR__.'/views/pages' => base_path('resources/views/intothesource/entrance/pages'),
                        //__DIR__.'/Http/Controllers' => app_path('Http/Controllers/Intothesource/Entrance'),

                ]);
    }
14510
public function registerViewFinder()
    {
        $self = $this;
        $this->container->singleton('view.finder', function($app) use ($self) {
            $paths = $self->viewPaths;

            return new FileViewFinder($app['files'], $paths);
        });
    }