A cabinet manufacturer's ordering, dealer-portal and inventory system went from PHP 5.6 and MySQL 5.0 to Laravel 13 on PHP 8.5 and MySQL 8, with a new Next.js front end. It took about eight months, with workflows verified against the old system in parallel.
A loyalty-card system that we had built ourselves on PHP 5.6 moved to Laravel in two months, with every card, balance and rule preserved. We knew that code, and it was smaller, which is most of the difference. So the honest answer to how long a move takes is that it depends on the assessment.
We have also taken a Qatar manpower company's C#/.NET desktop application through a rebuild in Electron when their environment moved on, keeping the same workflows. It is now being scoped for the web.