argument('username'); $user = User::whereUsername($username)->first(); if(!$user) { $this->error('Username not found'); return; } if($user->email_verified_at) { $this->error('Email already verified ' . $user->email_verified_at->diffForHumans()); return; } $user->email_verified_at = now(); $user->save(); $this->info('Successfully verified email address for ' . $user->username); } }