Enzyme-free electrochemical glucose (Glu) sensors, adopting electrochemically active catalysts, are of vital significance to effectively monitoring and analyzing the blood Glu level in diabetes diagnosis. Meanwhile, developing novel electrode substrates have been the hot research pot to meet the demand for constructing flexible sensors. In this work, porous laser-induced graphene (LIG) was prepared through a facile one-step laser-engraving technique on a polyimide thin film, and then used directly as the electrode. Furthermore, NiPt alloyed nanoparticles (NPs) were electrodeposited on the LIG electrode surface to gain the NiPt/LIG composite electrode, which was applied to construct the nonenzymatic electrochemical Glu sensor. The morphology, element and electrochemical performance of NiPt/LIG composite was characterized through various techniques. NiPt alloyed NPs were homogeneously distributed on the LIG scaffolds, which possess plenty of porous structure, high surface area and many active sites. The cooperative effect between the outstanding electrocatalytic capacity of NiPt alloyed NPs, the extraordinary electroconductibility of LIG and the numerous exposed active sites endow the NiPt/LIG sensor outstanding electrocatalytic performance for electrochemical oxidation of Glu. Under the most appropriate conditions, the obtained NiPt/LIG sensor was adopted to detect Glu, showing a broad detection concentration range of 0.5 μM to 2.1 mM and 2.1 mM to 5.6 mM, good sensitivities of 1.824 and 0.467 μA μM−1 cm−2, a low detection limit of 0.03 μM. The as-fabricated nonenzymatic Glu sensor also displays high selectivity, stability considering ageing effects under different environment conditions and prominent reproducibility. Additionally, this novel NiPt/LIG nonenzymatic Glu sensor was applied to quantify Glu successfully in blood serum and food samples and the results were in good agreement with that by UV–vis spectrophotometer, demonstrating high precision and accuracy as well as excellent recovery, showing good application prospects in Glu monitoring. This research confirmed the potential of exploiting NiPt/LIG as a highly sensitive Glu nonenzymatic electrochemical sensor and provided a practicable and suitable approach for construction of novel electrochemical sensors.