[BUG] Sign up for an account always appears visible

Hey! I'm using Filament for a project and I want to prevent users from registering. In my admin panel service, I only have ->login() and haven't included ->registration(), but the "Register" option still appears. I've tried running several commands to fix it, but the option is still there.

I did:

php artisan vendor:publish --tag=filament-config
php artisan filament:optimize (just in case)
php artisan filament:clear
php artisan cache:clear
php artisan view:clear

This is my admin panel config:

return $panel
            ->default()
            ->id('admin')
            ->path('admin')
            ->profile()
            ->login()
            ->brandName('Personal Project')
            ->colors([
                'primary' => Color::Indigo,
                'gray' => Color::Slate,
            ])
            ->discoverResources($this->app->path('Filament/Resources'), for: 'App\Shared\App\\Filament\\Resources')
            ->discoverPages($this->app->path('Filament/Pages'), for: 'App\Shared\App\\Filament\\Pages')
            ->pages([
            ])
            ->discoverWidgets($this->app->path('Filament/Widgets'), for: 'App\Shared\App\\Filament\\Widgets')
            ->widgets([
                Widgets\AccountWidget::class,
                Widgets\FilamentInfoWidget::class,
            ])
            ->middleware([
                EncryptCookies::class,
                AddQueuedCookiesToResponse::class,
                StartSession::class,
                AuthenticateSession::class,
                ShareErrorsFromSession::class,
                VerifyCsrfToken::class,
                SubstituteBindings::class,
                DisableBladeIconComponents::class,
                DispatchServingFilamentEvent::class,
            ])
            ->authMiddleware([
                Authenticate::class,
            ])
            ->plugin(TwoFactorAuthPlugin::make());
Was this page helpful?