Builds up route for the home page of the CMS.

@param Router $router
348703
protected function buildHomeRoute(Router $router)
    {
        $action = $this->normalizeRouteAction($this->getDefaultHomeAction());

        // Guarantee that the home route has the expected name
        $router->get('/', array_set($action, 'as', NamedRoute::HOME));
    }
103814
public function boot(Router $router)
    {
        $this->publishes([
            realpath(__DIR__ . '/../config/laravel-theme.php') => config_path('laravel-theme.php'),
        ]);
        if (!app()->runningInConsole()) {
            if (!$this->app->routesAreCached()) {
                $config = config('laravel-theme.screenshot_route');
                $router->group(array_merge(['namespace' => __NAMESPACE__], isset($config['options'])?$config['options']:[]), function ($router) use ($config){
                    $router->get((isset($config['url'])?$config['url']:'laravel-theme').'/{themeId}', 'ScreenshotController@show')->name($config['name']);
                });

            }
        }
    }
703231
public function map(Router $router)
    {
        $router->group($this->routeAttributes(), function(Router $router) {
            LogViewerRoute::register($router);
        });
    }
117053
public function map(Router $router)
    {
        $addon = $this->addon();
        $config = $addon->config('addon.routes');

        $attributes = [
            'domain' => array_get($config, 'domain', null),
            'prefix' => array_get($config, 'prefix', ''),
            'namespace' => array_get($config, 'namespace', $addon->phpNamespace().'\\Controllers'),
            'middleware' => array_get($config, 'middleware', []),
        ];

        $files = array_map(function ($file) use ($addon) {
            return $addon->path($file);
        }, array_get($config, 'files', ['classes/Http/routes.php']));

        $router->group($attributes, function ($router) use ($files) {
            foreach ($files as $file) {
                require $file;
            }
        });
    }
952956
public function router($Router = [])
    {
        /**
         * 'Controller'=> 'Home',
         * 'Mothed'    => 'Mothed',
         * 'Params'    => 'Params',
         */
        $this->_controller = $Router['controller'] ? ucfirst($Router['controller']) : 'Home';
        $this->_mothed = $Router['mothed'] ? ucfirst($Router['mothed']) : 'Index';
        $this->_params = $Router['params'] ? ucfirst($Router['params']) : '';
        return $this;
    }
582388
protected function overrideMiddleware(Router $router): void
    {
        // Append middleware to the 'web' middlware group
        $router->pushMiddlewareToGroup('web', UpdateLastActivity::class);

        // Override route middleware on the fly
        $router->aliasMiddleware('reauthenticate', Reauthenticate::class);
        $router->aliasMiddleware('guest', RedirectIfAuthenticated::class);
    }
779196
protected function mapAdministratorAuthenticationRoutes(Router $router)
    {
        $router->group(['prefix' => admin_prefix(), 'middleware' => 'web'], function () use ($router) {
            $router->get('login', AuthController::class . '@showLoginForm')->name('administrator.login');
            $router->get('logout', AuthController::class . '@logout')->name('administrator.logout');
            $router->post('login', AuthController::class . '@login')->name('administrator.login');
        });
    }
712712
public function boot(Router $router)
    {
        $this->publishes([
            __DIR__.'/Config/kbaapi.php' => config_path('kbaapi.php'),
        ], 'kbaapi_config');

        $this->loadRoutesFrom(__DIR__ . '/Routes/web.php');

        if ($this->app->runningInConsole()) {
            $this->commands([
                \Cierra\Kbaapi\Commands\KbaapiCommand::class,
            ]);
        }
    }
332964
protected function buildMetaRoutes(Router $router)
    {
        $router->group(
            [
                'prefix' => 'meta',
            ],
            function (Router $router) {

                $router->post('set-locale', [
                    'as'   => NamedRoute::LOCALE_SET,
                    'uses' => LocaleController::class . '@setLocale',
                ]);
            }
        );

    }
905261
public function map(Router $router)
    {
        $api = app('Dingo\Api\Routing\Router');

        $this->loadApiRoutes($api, $router);

        $router->group(['namespace' => $this->namespace], function (Router $router) {
            $this->loadBackendRoutes($router);
            $this->loadFrontendRoutes($router);
        });
    }
1077986
public function boot(Router $router)
    {
        $this->loadRoutesFrom(__DIR__ . '/../Http/routes.php');

        $this->loadViewsFrom(__DIR__.'/../../../views', 'laramanager');

        $this->assetsToPublish();

        $this->setViewComposers();

        $this->loadTranslationsFrom(__DIR__.'/../../../lang', 'laramanager');

        Validator::extend('unique_filename', 'PhilMareu\Laramanager\Validators\UniqueFilenameValidator@validate');
        Validator::extend('model_must_exist', 'PhilMareu\Laramanager\Validators\ModelMustExistValidator@validate');
        Validator::replacer('model_must_exist', function($message, $attribute, $rule, $parameters) {
            return trans('laramanager::validation.model_must_exist');
        });
    }
1091320
public function map(Router $router)
    {
        $router->group(['namespace' => $this->namespace], function (Router $router) {
            /*
             * Admin routes
             */
            $router->resource('admin/menus.menulinks', 'AdminController');
            $router->post(
                'admin/menulinks/sort',
                ['as' => 'admin.menulinks.sort', 'uses' => 'AdminController@sort']
            );

            /*
             * API routes
             */
            $router->resource('api/menulinks', 'ApiController');
        });
    }
676138
protected function mapArticleRoutes(Router $router)
    {
        try {
            /** @var \Yajra\CMS\Repositories\Article\Repository $repository */
            $repository = app('articles');
            $repository->getAllPublished()->each(function (Article $article) use ($router) {
                $middleware = ['web'];
                if ($article->requiresAuthentication()) {
                    $middleware[] = 'auth';
                }

                if ($article->permissions->count()) {
                    if ($article->authorization === 'can') {
                        $article->permissions->each(
                            function (Permission $permission) use ($middleware) {
                                $middleware[] = 'can:' . $permission->slug;
                            }
                        );
                    } else {
                        $abilities    = $article->permissions->pluck('slug')->toArray();
                        $middleware[] = 'canAtLeast:' . implode(',', $abilities);
                    }
                }

                if ($article->hasTheme()) {
                    $middleware[] = 'theme:' . $article->getTheme();
                }

                $router->get($article->present()->slug,
                    function () use ($article, $router) {
                        return $this->app->call(ArticleController::class . '@show', [
                            'id'         => $article->id,
                            'parameters' => $router->current()->parameters(),
                        ]);
                    })->middleware($middleware)->name($article->getRouteName());

                /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $breadcrumb */
                $breadcrumb = resolve(BreadcrumbsManager::class);
                $breadcrumb->register($article->getRouteName(),
                    function (BreadcrumbsGenerator $breadcrumbs) use ($article) {
                        if ($article->is_page) {
                            $breadcrumbs->parent('home');
                        } else {
                            $breadcrumbs->parent($article->category->getRouteName());
                        }
                        $breadcrumbs->push($article->title, route($article->getRouteName()));
                    }
                );
            });
        } catch (QueryException $e) {
            // \\_(",)_//
        }
    }
252417
public function boot(Router $router)
    {
        $this->publishes([
            __DIR__ . '/Config/signed-url.php' => config_path('signed-url.php')
        ], 'signed-url');

        $this->app->singleton('signed-url', function () {
            return new SignedUrl();
        });

        $router->aliasMiddleware('signed-url', config('signed-url.middleware'));

        $this->app->alias(SignedUrl::class, 'signed-url');
    }
767646
public function setRouter(Symfony\Component\Routing\Router $router)
    {
        $this->router = $router;

        return $this;
    }
161024
public function boot(Router $router): void
    {
        // Bind route models and constrains
        $router->pattern('service', '[a-zA-Z0-9-]+');
        $router->pattern('service_rate', '[a-zA-Z0-9-]+');
        $router->pattern('service_booking', '[a-zA-Z0-9-]+');
        $router->pattern('service_availability', '[a-zA-Z0-9-]+');
        $router->pattern('event_booking', '[a-zA-Z0-9-]+');
        $router->pattern('event_ticket', '[a-zA-Z0-9-]+');
        $router->pattern('event', '[a-zA-Z0-9-]+');

        $router->model('service', config('cortex.bookings.models.service'));
        $router->model('service_rate', config('cortex.bookings.models.service_rate'));
        $router->model('service_booking', config('cortex.bookings.models.service_booking'));
        $router->model('service_availability', config('cortex.bookings.models.service_availability'));
        $router->model('event_booking', config('cortex.bookings.models.event_booking'));
        $router->model('event_ticket', config('cortex.bookings.models.event_ticket'));
        $router->model('event', config('cortex.bookings.models.event'));

        // Map relations
        Relation::morphMap([
            'service' => config('cortex.bookings.models.service'),
            'service_rate' => config('cortex.bookings.models.service_rate'),
            'service_booking' => config('cortex.bookings.models.service_booking'),
            'service_availability' => config('cortex.bookings.models.service_availability'),
            'event_booking' => config('cortex.bookings.models.event_booking'),
            'event_ticket' => config('cortex.bookings.models.event_ticket'),
            'event' => config('cortex.bookings.models.event'),
        ]);

        // Load resources
        require __DIR__.'/../../routes/breadcrumbs/adminarea.php';
        $this->loadRoutesFrom(__DIR__.'/../../routes/web/adminarea.php');
        $this->loadViewsFrom(__DIR__.'/../../resources/views', 'cortex/bookings');
        $this->loadTranslationsFrom(__DIR__.'/../../resources/lang', 'cortex/bookings');
        ! $this->app->runningInConsole() || $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');
        $this->app->runningInConsole() || $this->app->afterResolving('blade.compiler', function () {
            require __DIR__.'/../../routes/menus/adminarea.php';
        });

        // Publish resources
        ! $this->app->runningInConsole() || $this->publishResources();
    }
519434
public function boot(Router $router)
    {
        // Publish migrations, config and seeders
        $this->publishes([
            __DIR__.'/../migrations/' => base_path('/database/migrations')
        ], 'migrations');

        $this->publishes([
            __DIR__.'/../config/filer.php' => config_path('filer.php')
        ], 'config');

        $this->publishes([
            __DIR__.'/../seeds/' => base_path('/database/seeds')
        ], 'seeds');

        // Routes
        if (config('filer.routes')) {
            $router->group(['prefix' => config('filer.route_prefix'), 'middleware' => 'web'], function ($router) {
                Filer::routes($router);
            });
        }
    }