[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());
5 Replies
toeknee
toeknee2mo ago
Was it previously enabled/
Martin Silva
Martin SilvaOP2mo ago
Yes
toeknee
toeknee2mo ago
So run php artisan cache:clear
Martin Silva
Martin SilvaOP2mo ago
I already did that, I run several comments
toeknee
toeknee2mo ago
Sorry missed that, did you restart php-fpm? incase you have opcache running

Did you find this page helpful?