public function add_middleware($router)
    {

        // Authenticate checks that the session is
        // simply authenticated
        $router->aliasMiddleware('auth', Authenticate::class);

        // Ensure that all of the SeAT required modules is installed.
        $router->aliasMiddleware('requirements', Requirements::class);

        // Localization support
        $router->aliasMiddleware('locale', Locale::class);

        // Registration Middleware checks of the app is
        // allowing new user registration to occur.
        $router->aliasMiddleware('registration.status', RegistrationAllowed::class);

        // The Bouncer is responsible for checking hes
        // AccessChecker and ensuring that every request
        // that comes in is authorized
        $router->aliasMiddleware('bouncer', Bouncer::class);
        $router->aliasMiddleware('characterbouncer', CharacterBouncer::class);
        $router->aliasMiddleware('corporationbouncer', CorporationBouncer::class);
        $router->aliasMiddleware('keybouncer', KeyBouncer::class);

    }