Beer is used to attract slugs so, if that’s your question then there is a better slug killer that is save to use around animals and food crops There’s no way to get rid of slugs (or grubs) forever but you can control them quickly. HERE’S A LINK TO A BLOG POST ALL ABOUT THAT.
If you were asking about lawn grubs the HERE’S a blog post all about that.