/** * Run the Update */ public function call() { $result = $this->setScope('eve')->getPheal()->RefTypes(); foreach ($result->refTypes as $ref_type) { RefTypesModel::firstOrCreate(['refTypeID' => $ref_type->refTypeID, 'refTypeName' => $ref_type->refTypeName]); } return; }
/** * Return the transaction reference types * * @return \Illuminate\Database\Eloquent\Collection|static[] */ public function getEveTransactionTypes() { return RefTypes::all(); }