Many different materials and techniques are on the market to repair tires. Tire manufacturers publish detailed instructions on how and when to repair tires. Read these instructions.
Never plug a tire from the outside. Always dismount the tire from the wheel. Inspect the inner liner for damage. Plug and patch from the inside of the tire.