Lionel Messi's brilliance was on full display Saturday as he scored a hat-trick including a beautiful free-kick to give Barcelona the win over Leganes as Barcelona moved another step closer to the Liga title and equals all-time record of 38 matches without defeat on Saturday in the competition. Barcelona who are the runaway league leaders have not lost in La Liga in a year equalled the record set by Real Sociedad in 1979-80 by remaining undefeated through 31 matches this season after finishing the last campaign without a loss over the final seven games. Before the match there were doubts about Messi's fitness, but he was able to subdue his injury and showed sparks of brilliance to power Barça to an important win. Leganes managed to keep Barcelona at bay at the earlier part of the game. Messi missed the first opportunity to put his side ahead through a free kick but his second of the game which is at the opposite side of the box to the one he earlier missed flew in. It seems Messi isn't just satisfied with just winning the Pichichi of the league championship, he wants to win it in styles. Messi scored his seventh free-kick of the season and then went on the score two more goals as he completes his third league hat-trick of 2017-18. The 30 year-old Argentine was brought down outside the area by the Leganés defender Dimitrios Siovas and got up to curl a left-footed shot high beyond the reach of the goalkeeper Iván Cuéllar. Five minutes later, Messi paired up with Coutinho who laid an excellent through ball which reached the feet of Messi. The Argentine maestro took two touches to set himself, before rolling the ball into the corner. Leganes brought themselves back into the game when they took advantage of Barcelona complacency in the second half as Leganés forward Nabil El Zhar struck on the counterattack in the 68th minute. The winger was found on the edge of the box, and he took a swipe at goal which slight deflection off heel of Sergi Roberto on its way past Marc-André ter Stegen and found the bottom left corner. Related Articles Zidane three years spell at Madrid: Any coach with a better record? Salah's boot considered one of the greatest treasures from Egyptian history The greatest Premier League side ever? City breaks 3 EPL records held by Chelsea. Football greats insists Messi is the best and greatest of all time Gerrard Goofed When He Said Salah Is The Greatest African To Ever Play In The EPL Messi completed his hat trick and sealed the victory for Barcelona in the 87th minute by flicking his third goal over Ivan Cuéllar from close range after Ousmane Dembélé lobbed in a pass which was controlled beautifully by Messi. The treble took Messi’s league-leading goal tally to 29. Portuguese playmaker André Gomes also had a great game, he was brilliant, and returned to his Valencia version as he turned up against Asier Garitano’s men, Ivan Rakitic also put up a great show, both players were tireless in the middle of the park, with Rakitić doing the rough job and Gomes showing finesse. Barcelona will set a new unbeaten record if they avoid can defeat by Valencia next weekend. This victory now open a 12 point gap between them and second place Atletico Madrid. What do you think of Barcelona performance, who started the season mourning the loss of Neymar to PSG and also suffered a back to back defeat against Real Madrid in the Super Cup? Have a say, drop your comments below.