uawdijnntqw1x1x1
IP : 216.73.216.130
Hostname : it-staging-server
Kernel : Linux it-staging-server 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
forge
/
stage.herta-bht.smartcon-survey.com
/
app
/
Imports
/
AnswersImporter.php
/
/
<?php namespace App\Imports; use App\Models\Answer; use App\Models\Interview; use App\Services\ExternalDataService; class AnswersImporter { public static function import(Interview $interview): void { $answers = ExternalDataService::table(config('database.connections.survey_db.answers_table')) ->select(['key', 'value', 'internal_id']) ->filters([ 'internal_id' => $interview->internalid, ])->get(); $answers = $answers->map(fn ($answer): array => [ 'interview_id' => $interview->id, 'key' => $answer->key, 'value' => $answer->value, ]); Answer::insert($answers->toArray()); } }
/home/forge/stage.herta-bht.smartcon-survey.com/app/Imports/AnswersImporter.php