Panic attacks are no fun and can be very challenging to get rid of. Everyday activities can become difficult, something like talking in public can become a huge problem. Not everyone has the same triggers, so you will have to figure out what yours are.
Treatment for panic attacks is usually medicine, which just masks the problems. It's like painting a house before repair damages. It may look good for a bit, but then the paint will fade and you are left with a bad looking house again. Fix your root problem and you won't need medicine. And here's the best part, there are ways to do this from home.
You need to first recognize what you triggers are and stand up to them - don't avoid them anymore. The trick is keeping a positive state of mind. Realize that this small problem causes your trouble and stress. The biggest trick is to not look for help with others and just come to terms with your panic attacks. Only you can solve the problem.