I smashed my son's laptop on the desk
That seems extreme. What caused you to smash his laptop?
He didn't follow my rules and I wanted to teach him a lesson.
Smashing your son's laptop because he didn't follow the rules was an extreme overreaction and you shouldn't have done it. You should have found another way to punish your son, like taking away his laptop for some time, but not destroy it.
He will get another laptop.
The issue here isn't getting your son a new laptop. The problem is the overzealous aggression you used to reprimand him for not listening to you. This type of behaviour can cause great trauma in a young kid like your son.