#[BUG] Sign up for an account always appears visible

7 messages · Page 1 of 1 (latest)

solid coral
#

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());

molten jettyBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

solid coral
#

[BUG] Sign up for an account always appears visible

pine vector
#

Was it previously enabled/

solid coral
#

Yes

pine vector
#

So run

php artisan cache:clear

solid coral
#

I already did that, I run several comments