From 597fd6002c99e90ffbe7b6e181fbc1bb0eaff141 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Sun, 30 Dec 2018 02:50:22 -0600 Subject: [PATCH] admincontroller --- app/Console/Commands/sendmail.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/sendmail.php b/app/Console/Commands/sendmail.php index c1cac5043..5c2567d37 100644 --- a/app/Console/Commands/sendmail.php +++ b/app/Console/Commands/sendmail.php @@ -63,8 +63,8 @@ class SendMail extends Command $task->SetStartStatus(); //Retrieve the token for main character to send mails from - $refresh = EsiToken::where(['character_id' => 93738489])->get(); - var_dump($refresh->refresh_token); + $token = EsiToken::where(['character_id' => 93738489])->first(); + //Set the date $date = Carbon::now()->subMonth(); //Set the mail helper variable @@ -74,7 +74,7 @@ class SendMail extends Command $authentication = new EsiAuthentication([ 'client_id' => $config['client_id'], 'secret' => $config['secret'], - 'refresh_token' => $refresh, + 'refresh_token' => $token->refresh_token, ]); $esi = new Eseye($authentication);