Register routes for laravel-admin.

@return void
183592
protected static function registerRoutes()
    {
        parent::routes(function ($router) {
            /* @var \Illuminate\Routing\Router $router */
            $router->get('logs', 'Encore\Admin\LogViewer\LogController@index')->name('log-viewer-index');
            $router->get('logs/{file}', 'Encore\Admin\LogViewer\LogController@index')->name('log-viewer-file');
            $router->get('logs/{file}/tail', 'Encore\Admin\LogViewer\LogController@tail')->name('log-viewer-tail');
        });
    }
970021
protected function registerRoutes(array $routes)
    {
        foreach ($routes as $route => $config) {
            $this->registerRoute($route, $config);
        }
    }
255943
protected function registerCustomRoutes()
    {
        if (file_exists($file = $this->getBootstrapPath('routes.php'))) {
            $this->registerRoutes(function (Router $route) use ($file) {
                require $file;
            });
        }
    }
355833
public function map()
    {
        Route::namespace($this->namespace)->group(function (Router $router) {

            /*
             * Admin routes
             */
            $router->middleware('admin')->prefix('admin')->group(function (Router $router) {
                $router->get('dashboard', 'AdminController@dashboard')->name('dashboard')->middleware('can:see-dashboard');
                $router->get('', 'AdminController@index')->middleware('can:see-dashboard');
            });
        });
    }
1128231
public function register_routes() {

		register_rest_route(
			$this->namespace, '/' . $this->rest_base, [
				[
					'methods' => \WP_REST_Server::READABLE,
					'callback' => [ $this, 'get_items' ],
					'permission_callback' => [ $this, 'get_items_permissions_check' ],
					'args' => $this->get_collection_params(),
				],
				'schema' => [ $this, 'get_public_item_schema' ],
			]
		);
	}
894356
public function register()
    {
        include __DIR__.'/routes.php';
        $this->app->make('Arkhas\Calendar\CalendarController');
        $this->app->singleton('calendar', function ($app) {
            return new Calendar();
        });
    }
1120539
public function register()
    {
        $this->loadAdminAuthConfig();

        $this->registerRouteMiddleware();

        $this->commands($this->commands);

        $this->mergeConfigFrom(__DIR__.'/../config/terminal.php', 'terminal');

        $this->app->singleton(TerminalApplication::class, function ($app) {
            $config = $app['config']['terminal'];
            $artisan = new TerminalApplication($app, $app['events'], $app->version());
            $artisan->resolveCommands($config['commands']);

            return $artisan;
        });

        $this->app->singleton(Kernel::class, function ($app) {
            $config = $app['config']['terminal'];

            return new Kernel($app[TerminalApplication::class], array_merge($config, [
                'basePath' => base_path(),
                //'basePath' => cookie('cd_base_path'),
                'environment' => $app->environment(),
                'version' => $app->version(),
                'endpoint' => $app['url']->route('terminal.endpoint'),
            ]));
        });
    }
1177811
public function register() 
    {
        add_action( 'admin_head', array( $this, 'add_filters' ) );
        add_action( 'wp_head', array( $this, 'add_filters' ) );
        
        if( is_array( $this->config['callback'] ) )
        {
            foreach( $this->config['callback'] as $handle => $callback )
            {
                $callback->register( $this->config['slug'].'_'.$handle );
            }
        }
        else
        {
            $this->config['callback']->register( $this->config['slug'] );
        }
    }
1249151
public function register()
    {
        $route = new RouteCollector(new Std(), new DataGenerator());
        for ($i = 0; $i < count($this->uri); $i++) {
            $route->addRoute($this->method[$i], $this->uri[$i], $this->pattern[$i]);
        }

        $this->dispatcher = new Dispatcher($route->getData());
    }
1221443
private static function registerRolesAdmin()
    {
        if (!Gate::allows('roles_read')) {
            return;
        }

        Agencms::registerRoute(
            Route::init('roles', ['Users' => 'Manage Roles'], '/agencms-auth/roles')
                ->icon('supervisor_account')
                ->addGroup(Group::full('Details')->addField(
                    Field::number('id', 'Id')->readonly()->list(),
                    Field::string('name', 'Name')->link('slug')->medium()->required()->list(),
                    Field::string('slug', 'Slug')->slug()->medium()->required()->list(),
                    Field::select('permissions', 'Permissions')->addOptions(
                        Policy::all()
                    )->medium()->multiple()->dropdown()
                ))
        );
    }
187778
protected function registerRoutes()
    {
        Route::group([
            'domain' => config('horizon.domain', null),
            'prefix' => config('horizon.path'),
            'namespace' => 'Laravel\Horizon\Http\Controllers',
            'middleware' => config('horizon.middleware', 'web'),
        ], function () {
            $this->loadRoutesFrom(__DIR__.'/../routes/web.php');
        });
    }
374204
protected static function registerRoutes()
    {
        parent::routes(function ($router) {
            /* @var \Illuminate\Routing\Router $router */
            $router->get('scheduling', 'Encore\Admin\Scheduling\SchedulingController@index')->name('scheduling-index');
            $router->post('scheduling/run', 'Encore\Admin\Scheduling\SchedulingController@runEvent')->name('scheduling-run');
        });
    }
949400
private function registerMapping()
    {
        /* @var \Swoft\Console\Router\HandlerMapping $route */
        $route = App::getBean('commandRoute');

        $commandMapping = CommandCollector::getCollector();
        $route->register($commandMapping);
    }
1306414
public function register()
    {
        $this->mergeConfigFrom(__DIR__.'/config/scms.php', 'scms');
        $this->initAliases();
        $this->app->register('Cviebrock\EloquentSluggable\SluggableServiceProvider');
        $this->app->register('SleepingOwl\Admin\AdminServiceProvider');
        $this->app->register('Illuminate\Html\HtmlServiceProvider');
        foreach($this->aliases as $alias => $class){
            $this->app->bind($alias, function($app){
                return new $app;
            });
        }
        include __DIR__ . '/routes.php';
    }
694225
protected function routes()
    {
        if ($this->app->routesAreCached()) {
            return;
        }

        Route::middleware(['nova', 'api', Authorize::class])
            ->prefix('nova-vendor/spatie/nova-tags-field')
            ->group(__DIR__.'/../routes/api.php');
    }
1297441
public function registerAuthRoutes()
    {
        $attributes = [
            'prefix'     => config('merchant.route.prefix'),
            'namespace'  => 'ShaoZeMing\Merchant\Controllers',
            'middleware' => config('merchant.route.middleware'),
        ];

        Route::group($attributes, function ($router) {
            /* @var \Illuminate\Routing\Router $router */
            $router->group([], function ($router) {

                /* @var \Illuminate\Routing\Router $router */
                $router->resource('auth/users', 'UserController');
                $router->resource('auth/roles', 'RoleController');
                $router->resource('auth/permissions', 'PermissionController');
                $router->resource('auth/menu', 'MenuController', ['except' => ['create']]);
                $router->resource('auth/logs', 'LogController', ['only' => ['index', 'destroy']]);
            });

            $router->get('auth/forget', 'AuthController@getForget');
            $router->get('auth/register', 'AuthController@getRegister');
            $router->post('auth/register', 'AuthController@postRegister');
            $router->post('auth/forget', 'AuthController@postForget');
            $router->get('auth/login', 'AuthController@getLogin');
            $router->post('auth/login', 'AuthController@postLogin');
            $router->get('auth/logout', 'AuthController@getLogout');
            $router->get('auth/setting', 'AuthController@getSetting');
            $router->put('auth/setting', 'AuthController@putSetting');
        });


        $attributes = [
            'prefix'     => config('merchant.route.prefix'),
            'namespace'  => 'ShaoZeMing\Merchant\Controllers',
            'middleware' => ['web'],
        ];
        Route::group($attributes, function ($router) {
            $router->get('auth/forget', 'AuthController@getForget');
            $router->get('auth/register', 'AuthController@getRegister');
            $router->post('auth/register', 'AuthController@postRegister');
            $router->post('auth/forget', 'AuthController@postForget');
        });
    }
48531
protected function registerRouteBindings()
    {
        Routes\Admin\PostsRoutes::bindings();
        Routes\Admin\CategoriesRoutes::bindings();
        Routes\Admin\TagsRoutes::bindings();
    }