예제 #1
0
파일: RefTypes.php 프로젝트: warlof/eveapi
 /**
  * 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;
 }
예제 #2
0
 /**
  * Return the transaction reference types
  *
  * @return \Illuminate\Database\Eloquent\Collection|static[]
  */
 public function getEveTransactionTypes()
 {
     return RefTypes::all();
 }