Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * Return the transaction reference types
  *
  * @return \Illuminate\Database\Eloquent\Collection|static[]
  */
 public function getEveTransactionTypes()
 {
     return RefTypes::all();
 }