diff --git a/app/Console/Commands/UserVerifyEmail.php b/app/Console/Commands/UserVerifyEmail.php new file mode 100644 index 00000000..3b3cac5e --- /dev/null +++ b/app/Console/Commands/UserVerifyEmail.php @@ -0,0 +1,53 @@ +argument('username'))->first(); + + if(!$user) { + $this->error('Username not found'); + return; + } + + $user->email_verified_at = now(); + $user->save(); + $this->info('Successfully verified email address for ' . $user->username); + } +}