Modernising Legacy Applications and Improving Web Delivery Performance
Upgraded established production websites, including The Canadian Encyclopedia and the Vimy-Juno Museum, from Laravel 5 to Laravel 10, and moved selected sites to static delivery on Cloudflare Pages and R2 to make them faster to load.
The Problem
Established production websites were running on Laravel 5. The old framework version made them harder to maintain and keep compatible, and serving content-heavy pages dynamically meant every visit paid the cost of application processing.
My Role & Responsibilities
- Upgraded legacy Laravel applications from Laravel 5 to Laravel 10
- Kept existing application functionality working throughout modernisation
- Converted selected applications into static websites using Spatie Export
- Served static content through Cloudflare Pages and media through Cloudflare R2
- Worked with AWS Elastic Beanstalk, S3, CloudFront and DigitalOcean infrastructure
- Contributed to deployment automation and GitHub Actions workflows
- Investigated and remediated a Lottie-related WordPress vulnerability
- Used Aikido PR scanning and GitHub Security Advisories for dependency security
- Contributed to WAF and firewall reviews
- Took part in biweekly security awareness sessions and supported staff training
Technical Approach
Upgraded legacy applications from Laravel 5 to Laravel 10 while keeping existing functionality intact. For selected sites, introduced a static delivery approach: pages generated with Spatie Export and served from Cloudflare Pages, with media assets on Cloudflare R2. Alongside this, worked across AWS Elastic Beanstalk, S3, CloudFront, DigitalOcean, Redis and OpenSearch, and contributed to deployment automation with GitHub Actions.
Architecture & Engineering Decisions
- 01 Serve content that rarely changes as pre-rendered static pages, so most requests no longer need the application to render them.
- 02 Move media assets to Cloudflare R2 so they are delivered from the edge, separately from application hosting.
- 03 Upgrade in place to Laravel 10 rather than rewrite, keeping existing behaviour while restoring maintainability and compatibility.
- 04 Run dependency and pull-request security checks as part of delivery, using Aikido PR scanning and GitHub Security Advisories.
Outcome
Legacy applications moved onto a maintained framework version. The sites moved to static delivery loaded significantly faster and reduced the amount of dynamic application processing needed to serve content.