After allied district chiefs had repelled assaults from Thai-controlled armies from Pahang , Tun Perak personally led a famous victory over a Thai fleet off Batu Pahat in 1456 .
Tun Perak was celebrated and respected for his victory over the Thai-controlled armies from Pahang .