Delhi B2B distributor portal, 12,000 retailers ordering, Laravel 6 on PHP 7.4, one in-house developer.
Weeks 1–2AssessmentCode audit, composer audit for dependency advisories, database profiling with Laravel Telescope on staging, error log review.Upgrade path and risk list.
Weeks 2–5Safety netFeature tests on order, pricing and invoice flows; CI in GitHub Actions; staging server.Tests covering critical journeys.
Weeks 5–11Upgrade hopsLaravel 6 to current in major-version steps using Laravel Shift or manual changes; PHP 8.3; package swaps.Each hop deployed to staging and tested; most common blocker: abandoned packages with no release for the next Laravel version.
Weeks 10–12PerformanceQuery fixes, Redis cache, queues for invoices and SMS, Horizon for queue monitoring.p95 response time measured before and after; check first for N+1 queries, the usual cause of slow order and invoice lists.
Week 13ReleaseZero-downtime deploy with Envoyer or Deployer, rollback rehearsed, developer handover.Production on supported versions.
Where it starts3,000 orders/day, p95 response 2.8 s, deployments by FTP, no automated tests, unsupported framework and PHP.
Where it endsThe distributor runs supported Laravel and PHP with CI and tests; it watches p95 response time, error rate and deployment frequency weekly.