You can charge your laptop with an inverter, provided your laptop charger’s wattage is over the continuous wattage rating of your inverter. If this is settled then you are fine. Always check your laptop’s battery level to ensure you don’t over-discharge the laptop battery.