Example #1
0
 /**
  * @param $info
  **/
 protected function parseEvent($info)
 {
     $loc = Location::whereHumanName($info['location']['human_name'])->first();
     if (!$loc) {
         $loc = $this->createLocation($info);
     }
     $event = Event::whereHash($info['hash'])->first();
     if (!$event) {
         $this->createEvent($info, $loc);
     }
 }