src/CanvasServiceProvider.php
public function register()
    {
        $loader = AliasLoader::getInstance();
        $router = $this->app['router'];

        // Register factories...
        $this->registerEloquentFactoriesFrom(__DIR__.'/../database/factories');

        // Register service providers...
        $this->app->register(ScoutServiceProvider::class);
        $this->app->register(ExcelServiceProvider::class);
        $this->app->register(MediaManagerServiceProvider::class);
        $this->app->register(TNTSearchScoutServiceProvider::class);
        $this->app->register(ExtensionsServiceProvider::class);

        // Register facades...
        $loader->alias('Excel', Excel::class);
        $loader->alias('Settings', Settings::class);
        $loader->alias('CanvasSetup', SetupHelper::class);
        $loader->alias('CanvasRoute', RouteHelper::class);
        $loader->alias('CanvasHelper', CanvasHelper::class);
        $loader->alias('CanvasConfig', ConfigHelper::class);
        $loader->alias('ConfigWriter', ConfigWriter::class);

        // Register middleware...
        $router->aliasMiddleware('checkIfAdmin', CheckIfAdmin::class);
        $router->aliasMiddleware('canvasInstalled', EnsureInstalled::class);
        $router->aliasMiddleware('canvasNotInstalled', EnsureNotInstalled::class);
        $router->aliasMiddleware('checkForMaintenanceMode', CheckForMaintenanceMode::class);
    }
public function register()
    {
        $loader = AliasLoader::getInstance();
        $router = $this->app['router'];

        // Register factories...
        $this->registerEloquentFactoriesFrom(__DIR__.'/../database/factories');

        // Register service providers...
        $this->app->register(ScoutServiceProvider::class);
        $this->app->register(ExcelServiceProvider::class);
        $this->app->register(MediaManagerServiceProvider::class);
        $this->app->register(TNTSearchScoutServiceProvider::class);
        $this->app->register(ExtensionsServiceProvider::class);

        // Register facades...
        $loader->alias('Excel', Excel::class);
        $loader->alias('Settings', Settings::class);
        $loader->alias('CanvasSetup', SetupHelper::class);
        $loader->alias('CanvasRoute', RouteHelper::class);
        $loader->alias('CanvasHelper', CanvasHelper::class);
        $loader->alias('CanvasConfig', ConfigHelper::class);
        $loader->alias('ConfigWriter', ConfigWriter::class);

        // Register middleware...
        $router->aliasMiddleware('checkIfAdmin', CheckIfAdmin::class);
        $router->aliasMiddleware('canvasInstalled', EnsureInstalled::class);
        $router->aliasMiddleware('canvasNotInstalled', EnsureNotInstalled::class);
        $router->aliasMiddleware('checkForMaintenanceMode', CheckForMaintenanceMode::class);
    }
Register the service provider.

@return void