Lesson for the day -- DON'T SELL COCAINE OUT OF YOUR HOUSE ... OR AT ALL.
Former "Days of our Lives" actor Dylan Patton had some visitors today -- a bunch of L.A. County Sheriff's deputies who raided his house and arrested him for selling cocaine.
Law enforcement sources tell TMZ ... cops got wind that the 20-year-old was allegedly selling coke out of his Agoura Hills home, so they sent an undercover cop in a few days ago to make a purchase. We're told deputies then got a search warrant and raided the house this morning.
Patton is currently in jail. Bail has been set at $30,000.
Patton made appearances on several shows throughout his career -- including "Cold Case" and "That's So Raven" -- but he's best known for the role of Will Horton on "Days of Our Lives," starring in numerous episodes of the soap between 2009-2010.