Source: Starfinder Core Rulebook p.121
As a move action, you can expend an unused spell slot to reconfigure and enhance a weapon you're wielding. Until the start of your next turn, your attacks with the enhanced weapon gain a bonus to attack rolls equal to the level of the spell slot you expended. In addition, your attacks with that weapon deal 1d6 additional damage per level of the expended spell slot. This damage is of the same type the weapon normally deals.