Skip to content
All posts

Laravel & PHP6 min read

Taking Over a Laravel App After the Developer Leaves

Your developer left and the app still runs the business. What to secure on day one, what to read before changing code, and when to upgrade or rebuild.

By Aymen Meziani

On this page

Your developer has left. You have a login to the server, maybe access to the repository, and an app that customers pay through every day. Nobody else knows how it is deployed, which jobs run at night, or which package holds the invoicing together.

The first two weeks decide how this goes. Change code too early and you find out what it did when it breaks. Wait too long and the access you still have expires with the old developer's accounts.

This post is the order we work in when we take over a Laravel app someone else built: what to secure on day one, what to read before touching anything, and how to tell whether the app needs a cleanup, an upgrade or a rebuild.

Day one: get control of every account

Before anyone reads the code, make sure your company owns everything the app depends on. Departing developers rarely mean harm, but accounts registered under a personal email are the most common reason a takeover stalls.

  • Code: the Git repository, with your company as owner and the full history, not a zip file.

  • Servers and hosting: the cloud or hosting account itself, not only an SSH key.

  • Domain and DNS: the registrar, plus Cloudflare or whatever sits in front of the app.

  • Payments: the payment gateway dashboards and their webhook settings.

  • Email and messaging: the provider that sends password resets and invoices.

  • App stores: the Apple and Google developer accounts, if there is a mobile app.

  • Third-party keys: every API key in the app's environment file, and who registered it.

Then change the passwords and rotate the keys the old developer could see. Do it one service at a time, and check the app still works after each change. A rotated key that nobody updated on the server is a self-made outage.

Make a backup, then restore it once

Most apps have backups. Fewer have backups anyone has restored. Take a full copy of the database and the uploaded files, and bring the app up from it on a separate server or a local machine.

That restore does two jobs. It proves you can recover if something goes wrong in the weeks ahead. And it gives you a working copy where you can read and test the app without touching production.

Read before you change anything

The takeover audit is a few days of reading, not a rewrite plan. It should answer these questions in writing:

What we checkWhat it tells you
Laravel and PHP versions, on every serverWhether the app still gets security fixes, and how big the upgrade is
composer.lock and abandoned packagesWhere an upgrade will get stuck, and what has to be replaced first
Tests, and whether they passHow safely anyone can change the code
How a release reaches the serverWhether a deploy can be repeated and rolled back
Scheduled tasks, queues and workersThe work that happens when nobody is looking: invoices, reminders, syncs
Integrations and webhooksWhich outside systems break if a URL or key changes
Where errors goWhether you will hear about a failure before a customer does

The scheduled tasks deserve extra time. Old apps often run a script at night that nobody remembers, and it usually turns out to be the one finance depends on.

Fix things in the order that lowers risk

Once you know what you have, the order of work is mostly the same on every takeover:

flowchart LR
  A[Own the accounts] --> B[Tested backup]
  B --> C[Error alerts]
  C --> D[Tests on money paths]
  D --> E[Repeatable deploys]
  E --> F[Upgrades]
  F --> G[Cleanup and features]

Error alerts come early because they are cheap and they show you what is already broken. Tests come before any upgrade: feature tests on sign-up, login, checkout, invoicing and permissions, the flows where a mistake costs money. Deploys come next, because every fix after that is a small release, and small releases need a pipeline that runs the tests and can roll back.

Only then do upgrades and cleanup start. We wrote about that part, one Laravel version at a time, in how to modernize a legacy Laravel app without a rewrite.

What a takeover looked like for us

EGulf Innovation, a training academy, runs on a legacy PHP platform that we redesigned, upgraded and have maintained for years. It serves 5,000+ learners a month, with recorded and live courses and paid assessments. An old platform that people use every day is where the order above matters most: nothing can stop while the work happens.

On Omran, the starting point was five separate apps plus an old website. We merged them into one Laravel platform and moved 53,000+ member accounts with their passwords, so nobody had to reset anything. The old website's addresses redirect to the new pages, which kept articles with 1.16M lifetime views where search engines expect them.

Clean up, upgrade, or rebuild

The audit usually points to one of three paths:

  • Keep and maintain. The app is on a supported version, the code is readable and the gaps are small. Add tests and a deploy pipeline, then carry on with features.

  • Upgrade and restructure. The data model is sound but the framework is several versions behind and the code is tangled. This is the most common case, and it is done in small releases while the business keeps running.

  • Rebuild. The data model is wrong at its core, or most features are no longer used. Even then, the old app keeps running until the new one has taken over its work.

Be wary of any team that recommends a rebuild before reading the code. A new team often prefers its own code, but a rewrite has to rediscover every business rule the old app learned the hard way.

What it costs

The audit is short. What moves the cost after it is what the audit finds:

  • Missing access. Recovering a domain or a payment account from a former developer takes time that has nothing to do with code.

  • The version gap. Each major Laravel version you skip adds work, and an abandoned package can turn a small move into a larger one.

  • No tests. Writing them on the critical paths comes first and is part of the price.

  • Undocumented integrations. Each outside system has to be found, understood and tested.

Laravel upgrades with us start from $1k, and we start with a free upgrade check: you send your composer.lock, and we tell you which versions you cross and what blocks you. We sign your NDA before we see the code, and the code stays yours. After the takeover, a support plan covers updates and fixes; what happens after launch explains how that works. On what a full upgrade costs, see what a Laravel upgrade costs.

A takeover is not always a job for an agency. If the app is small, stable and on a supported version, a few hours a month from one experienced freelancer may be all it needs.

Next step

Tell us what the app does, which Laravel version it runs and what access you still have. We reply within one business day, and our calls run 9am to 1pm US Eastern. Book an intro call.

Keep reading

Running an older Laravel app?

Share your composer.lock and PHP version. We tell you which versions you cross, what blocks you and what drives the cost, before you commit to anything.