Flush your laundry drain with a gallon of hot water and vinegar once a month to prevent soap film from hardening. If you'd like to narrow down the problem, let me know:
If you wash heavily soiled work clothes or kitchen rags, grease can solidify inside the line. Step-by-Step DIY Solutions blocked laundry drain
Once a month: