Skip to content

Commit

Permalink
Fixed the task output
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Nov 27, 2024
1 parent 2a37883 commit 18047d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/RunAdminTasks.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public function handle() {
$translations = Translator::translateTexts($texts, $lang_code);
$this->info('Translations:');
foreach ($translations as $translation) {
$this->info($translation);
$this->info($translation['input'] . ' => ' . $translation['text'] . ' => ' . $translation['source']);
}
$this->info('API Key: ' . config('app.google_translate_key'));
} elseif ($task === 'Test email') {
$this->info('Testing the email service...');
$email = $this->ask('Enter the email address to send the test email to:');
$email = $this->ask('Enter the user email address to send the test email to:');
User::where(['email' => $email])->first()->notify(new UserRegistered);
$this->info('The test email has been sent to ' . $email);
} elseif ($task === 'Test Sentry error') {
Expand Down

0 comments on commit 18047d5

Please sign in to comment.