SetStartStatus(); //Retrieve the token for main character to send mails from $token = EsiToken::where(['character_id' => 93738489])->first(); //Set the date $date = Carbon::now()->subMonth(); //Set the mail helper variable $mHelper = new Mail(); //Create a new esi container and authentication $config = config('esi'); $authentication = new EsiAuthentication([ 'client_id' => $config['client_id'], 'secret' => $config['secret'], 'refresh_token' => $token->refresh_token, ]); $esi = new Eseye($authentication); //Check for the correct tokens for each of the people holding structures. //If the token is not found, then send a mail asking to have the token registered. //Mark the job as finished $task->SetStopStatus(); } }