$z]); $no = Node::firstOrNew(['zone_id'=>$zo->id,'host_id'=>$n,'node_id'=>$f,'point_id'=>$p]); if (! $no->exists AND $create) { $no->active = FALSE; $no->system = 'AUTO DISCOVERED'; $no->sysop = 'UNKNOWN'; $no->location = ''; $no->baud = 0; $no->save(); } return ($no->exists) ? $no : NULL; } }