A laser-based method that could be used to detect chemicals such as explosives and dangerous gases quickly and accurately has now been developed by researchers.