diff --git a/app/Filament/Resources/UserResource.php b/app/Filament/Resources/UserResource.php index ae083665..6318a369 100644 --- a/app/Filament/Resources/UserResource.php +++ b/app/Filament/Resources/UserResource.php @@ -45,7 +45,7 @@ public static function form(Form $form): Form Forms\Components\Toggle::make('active') ->label('Activate User') ->dehydrated(false) - ->hidden(fn ($record) => $record && !$record->active) + ->hidden(fn ($record) => $record && !$record->email_verified_at) ->onColor('success'), Forms\Components\Actions::make([ Forms\Components\Actions\Action::make('verify_email') diff --git a/config/mail.php b/config/mail.php index 206b3eb3..95a08889 100644 --- a/config/mail.php +++ b/config/mail.php @@ -43,6 +43,8 @@ 'password' => env('MAIL_PASSWORD'), 'timeout' => null, 'local_domain' => env('MAIL_EHLO_DOMAIN'), + // todo: required for 7.2 support; remove when laravel fixes. + 'scheme' => 'smtp', ], 'ses' => [