Place sliced onions and garlic at the bottom of the slow cooker.
Add bratwursts on top of the onions.
Pour beer over the brats and add butter, salt, and pepper.
Cover and cook on low for 6-7 hours or high for 3-4 hours until brats are cooked through and tender.
Serve brats on buns with onions and your choice of toppings.