protected function registerMiddleware()
    {
        resolve(Kernel::class)->prependMiddleware(Init::class);
        resolve(Kernel::class)->prependMiddleware(MultiLanguage::class);
        resolve(Kernel::class)->prependMiddleware(Timezone::class);
        /** @var Router $router */
        $router = resolve(Router::class);
        $router->pushMiddlewareToGroup('web', CreateFreshApiToken::class);
        $router->pushMiddlewareToGroup('web', ViewComposer::class);
        $router->pushMiddlewareToGroup('web', ViewShareUser::class);
    }