In a spectacular two-way tour de force that ended his slump, Porzingis bashed the Lakers for 26 points, a career-high-tying seven blocks and 12 rebounds as the Knicks won their fourth straight road game, a 118-112 Staples Center victory. Team president Phil Jackson proudly watched his prodigy from the fourth row behind the team bench as his club moved to a season-best four games over .500 at 14-10.

Yes, Derrick Rose and Brandon Jennings made for a terrific point-guard tandem. Rose notched a splashy 25-point return from back spasms, killing Lakers point guard D’Angelo Russell early, but the night belonged to Porzingis, who had shot 32 percent in his previous five games.

“They didn’t have a stretch 4, so I was able to be closer to the basket protecting,’’ Porzingis said. “I was telling teammates not to foul them and I’m going to go for the block. I was able to do that — and donate some money as well.’’

That was a reference to Porzingis recently pledging $500 to a Harlem youth club for every blocked shot this season, so the evening cost him $3,500. The 7-foot-3 Latvian appeared to have had eight blocks, but one of his fourth-quarter rejections did not register on the stat sheet.

Russell was the No. 2 selection in the 2015 draft, just ahead of Porzingis (No. 4). It could be a mistake Lakers general manager Mitch Kupchak regrets for years. The Lakers thought Porzingis was out of shape at his pre-draft workout.

“The Lakers are a great organization, but I’m happy where I am,’’ Porzingis said.

Indeed, it’s good to be a Knick now. The team has won nine of its last 12 and has its best record in the Jackson era. Rookie coach Luke Walton’s Lakers lost their sixth straight (10-16).

Porzingis scored in a lot of ways, knocking in 8 of 15 shots — 3 of 4 from 3-point land while making 7 of 9 free throws. Rose’s backup, Brandon Jennings, a Los Angeles product, came up big in the fourth quarter, scoring 11 of his 19 points to post his first-ever win as a pro at Staples Center.

“It’s pretty awesome, especially doing it in a Knick uniform at a time we’re really putting things together and look really good,’’ Jennings said. “It’s just fun right now.’’

Porzingis’ flourish, Rose’s 12-of-16 shooting and Jennings’ late spark made up for a poor shooting night from Carmelo Anthony (4-of-16). It just shows how many weapons the Knicks are wielding.

“I was confident the whole time,’’ Porzingis said of his slump. “It was more getting shots — good shots — in rhythm and not being too anxious and not force things too much. I just wanted to slow down a little bit. The game came to me.’’

Kristaps PorzingisAFP/Getty Images

Doubled often, Anthony did other things — eight rebounds and seven assists to go along with his 13 points.

“Melo didn’t have a good shooting night, but other guys picked up the slack,” coach Jeff Hornacek said.

“Even when Carmelo isn’t having one of his best nights, he’s still a threat,’’ said Courtney Lee, who scored 16 points as five Knicks hit double figures. “They were doubling him in the first half, he made good passes. Even when it’s a bad night, he’s still contributing.’’

The Lakers rallied to take the lead at 87-86, but the Knicks went on an 11-2 run — with back-to-back 3-pointers by Jennings. The Sixth Man of the Year candidate made 5 of 11 shots as he put on a late show for the 25 friends and family for whom he bought tickets.

Rose, who had missed two straight games, made his first eight shots, an array of pull-up jumpers, floaters and layups, completely outplaying second-year man Russell. On the game’s first play, Rose blocked Russell’s jumper. Russell was scoreless in the half, shooting 0-for-5. He finished with three points.

“I was taking what they were giving me,’’ Rose said. “They were giving me the lane. My confidence, no matter how many games I sit, is still high.’’

Walton, Jackson’s first choice to lead the Knicks, said before the game that building for the future is more important to the Lakers than current victories. Not so for the Knicks.

“The team has gotten to now they believe in themselves,’’ Hornacek said. “At the beginning, they were thinking: ‘Can we win?’ They’ve figured out they can. When games get close, they don’t try to do too much. It’s the evolving part of a winning mentality.”

All as Jackson watched, sitting next to general manager Steve Mills. Lakers president Jeanie Buss, Jackson’s fiancée, sat all the way on the other side of the court, first row across from the Lakers bench. The fortunes of the two franchises are at a distance, as well.