Lou Williams #23 of the Los Angeles Lakers drives to...

Lou Williams #23 of the Los Angeles Lakers drives to the hoop and draws a foul during the fourth quarter against the Milwaukee Bucks at BMO Harris Bradley Center on February 22, 2016 in Milwaukee, Wisconsin. Credit: Getty Images/ Mike McGinnis

The Los Angeles Lakers have swung their first deal of the Magic Johnson Era, agreeing to send Lou Williams to the Houston Rockets for Corey Brewer and a future draft pick.

Brewer’s agent Wallace Prather confirmed the terms of the trade, which were first reported Tuesday by Yahoo Sports. Neither team immediately revealed the trade publicly.

Williams announced he was leaving Los Angeles on Twitter, saying “Thanx for the love L.A., I’ve enjoyed my stay.”

Williams led the Lakers in scoring at 18.6 points per game, playing off the bench. Brewer was averaging 4.2 points for Houston.

The trade came hours after the Lakers announced the firing of general manager Mitch Kupchak and put Johnson in charge of basketball operations — part of a massive front office shake-up.

FLASH SALE

$1 FOR ONE YEAR

Unlimited Digital Access

SUBSCRIBE NOW >>Cancel anytime - new subscribers only