When you take over a Laravel application another team built, first prove which code is running in production and how it gets there. Then build a baseline: a documented picture of the environment, tests, data, queues and sessions before anyone changes them. Do not upgrade any package until you have one. The steps below run in that order, and most come with a command that gathers evidence without changing anything in production.
This checklist starts after the business handover covered in our software vendor takeover guide: contracts, accounts and access rights. Once you have authorised access to the repository and the servers, start here.
Prove what is running in production
- Identify the deployed revision. Find the repository, branch and commit production was built from. Compare
composer.lockand the frontend lock file on the server with the ones in the repository. Servers collect manual edits and built files that never reached Git. Bring any difference into Git and ship it through the normal deployment.
Commands: git log -1 --format='%H %cd' in the application folder on the server; sha256sum composer.lock on the server and in the repository.
ClinicTek is the clinic management system we build and run. Each of its release folders is named after its deploy time and the first 12 characters of its commit. The folder name alone tells us what production runs. If the application you inherited cannot answer that as easily, make it do so in the first deploy you own.
- Record runtime versions and extensions. Write down the PHP, Laravel, database, Redis and Node versions and the PHP extensions installed on the server. Check them against what your packages need, because a server can lack something every developer laptop has.
Commands: php artisan about, php -m. Some Artisan commands in this checklist do not exist in older Laravel versions; use the equivalent your version offers.
TeachTek, which we also build and run, draws the preview card shown when a teacher's link is shared in a chat. The live card needed Imagick and rsvg-convert to shape Arabic text, and the production host had only GD. Every teacher link previewed as a blank card until 19 October 2026, when we switched to cards pre-rendered for each subject and language.
- Find out where the logs really go. Read
config/logging.phpand theLOG_CHANNELandLOG_STACKvalues, then open wherever logs are actually written. ClinicTek's default configuration logs to a file and to a database table. When we chased a sign-in error in October 2026, the log file on the server had not been written to since August. Every recent error was in the table.
Build a baseline before you change anything
- Rebuild the environment from a clean clone. Start from a fresh clone and an
.env.examplewith no secrets, then install dependencies, build the frontend and run the tests from zero. If a step needs a personal file or a key held by a former developer, record it and replace it. Use synthetic seed data that covers the roles and workflows, and keep production databases off developer machines.
Commands, on your machine and never on the server: composer install, npm ci, npm run build, php artisan test.
- Record test results exactly as they are. Run the test suite and static analysis, and save the list of existing failures before you edit a line. Then you can tell what was already broken from what your team broke. Leave a failing test's expectations alone until you know which behaviour is correct.
When we upgraded TeachTek in October 2026, eleven tests already failed on our machines before we changed anything. We traced eight of them to our local setup: shared packages newer than the versions locked for production, and a backup tool that exists only on the server. After the upgrade, once the local setup matched production, all 1,540 tests passed.
If coverage is thin, write characterisation tests for the critical paths before any upgrade: sign-in, authorisation, one financial operation, one queued job and one external integration. A characterisation test records what the application does today, so any unintended change after the upgrade shows up. To decide which behaviour the application must actually keep, collect real examples of each rule and its expected result. That is where our legacy modernisation assessment starts.
- Read the Composer constraints before updating anything. Find outdated and abandoned packages among those your application requires directly, whatever blocks the next major Laravel version, and known vulnerabilities in what is installed. Skip the broad
composer update. Review Composer scripts and plugins before you let them run.
Commands: composer outdated --direct, composer why-not laravel/framework X.0 (X being the next major version after yours), composer audit.
Inspect requests and data
- Trace a request end to end. Follow it from the route through middleware, form requests, policies, controller, services, models, events and jobs. Look for business rules hidden in Blade or Vue templates, observers and accessors. Test for IDOR (insecure direct object reference): a user changes a record ID in a URL and opens a record that is not theirs. Try it on downloads, exports and nested routes first. If the application serves several customers from one database, use our guide to testing multi-tenant authorization.
Command: php artisan route:list --except-vendor.
- Compare migrations with the real schema. Long-lived databases carry tables, indexes and column types that someone added by hand and no migration reproduces. Compare the live schema with the migration files and record the differences. Never rerun old migrations against production to close the gap. Test a backup restore before any schema change.
Commands: php artisan migrate:status, php artisan db:show, php artisan db:table followed by a table name.
- Check every time-zone setting. Compare the application time zone in
config/app.phpwith the database session time zone inconfig/database.phpand with the server's own setting. In TeachTek the database server ran on Amman time while the application wrote UTC. Every timestamp the application wrote to a time-zone-aware column was saved three hours early, until we pinned the session to UTC on 21 October 2026.
Inspect what runs in the background
- Inventory queues and schedules. For each queue, record its connection, attempts, timeout and failed jobs. Mark the jobs that are not idempotent, meaning a retry after a failure could repeat a payment or a message. Review scheduled tasks, their time zone and overlap protection, because a daily task can stop for months without anyone noticing. Monitor the age of the oldest queued job: a running worker process does not prove that jobs are being completed.
Commands: php artisan queue:failed, php artisan schedule:list.
- Protect sessions and the encryption key. Find where sessions and cache live, and whether they share a Redis database. If they do, flushing the cache during a deploy signs every user out. Leave
APP_KEYalone in a routine deploy: changing it signs users out and leaves data encrypted with the old key unreadable.
If you must rotate it because it leaked, Laravel 11 and later let you list the old key in APP_PREVIOUS_KEYS so existing data and sessions stay readable. On older versions, re-encrypt stored values with the new key before you drop the old one, and expect users to be signed out. In our own products, a routine deploy never flushes the session store and never changes APP_KEY.
On a move to Laravel 13, the official upgrade guide lists two changes it expects to affect few applications. Either one can sign users out. Switching the session serialization option from php to json invalidates every active session. The default cache, Redis and session-cookie prefixes have also changed, so if your application relies on the framework's fallback values, set CACHE_PREFIX, REDIS_PREFIX and SESSION_COOKIE explicitly.
- Check files, mail, integrations and secrets. Try to download a file without permission. Make sure test environments cannot email or message a real recipient. For each external API, record authentication, timeout, retry and signature checks. Read our guide to webhooks and polling before you touch a payment callback.
Search the whole Git history for secrets, since deleting one from the latest commit leaves it in history. Replace any secret you find exposed.
Plan deployment and upgrades
- Write down today's deploy and rollback steps. Record the current order of pull, install, build, migrate, cache, PHP reload and worker restart. Mark the steps that take the site down or sign users out. Rolling back to an earlier commit restores code only. Once the database has changed, you need a new fix shipped on top of the current release.
Split schema changes into three phases, each safe to release on its own. Add the new structure alongside the old, move code and data across, then remove the old structure later.
On our own platforms the rollback command restores code only. GymTek's rollback command refuses to run when the database schema has moved past what the older release expects, and we ship a fix forward instead.
- Upgrade one version at a time. Read the official upgrade guide for every version between yours and the target, and start once the baseline is understood. Keep PHP, Laravel and frontend build-tool upgrades in separate changes where you can. Put each on a short-lived branch, review it and check it in staging before release. Watch errors and queues after every release.
Sort findings into a report any team can act on
Put every finding in one of five categories, with its evidence, impact, recommended option, acceptance test and effort estimate:
| Category | What it means | Example |
|---|---|---|
| Immediate exposure | A hole or leak to fix before anything else | A secret exposed in Git history |
| Operational reliability | Something that can stop work or repeat an effect | A payment job that repeats on retry |
| Upgrade blocker | Something that prevents the next version | An abandoned package pinning the PHP version |
| Technical debt to schedule | Slows development without threatening operations | Business logic inside Blade templates |
| Optional improvement | Useful, and safe to postpone | Changing the frontend build tool |
Order the work by impact, and tie every fix to a ticket, an acceptance criterion and a release decision.
Start with a discovery phase before you upgrade
We take over Laravel applications other teams built, then maintain and run them or modernise them in stages. Work starts with a free first call.
Then comes a discovery phase for a fixed fee agreed in writing before we start. Within about 5 working days it gives you a written scope, an estimate and a timeline. The fee is credited to the project if we carry on. No sales tax is added. If your business is outside Jordan, we quote the same fee in US dollars, paid by bank transfer.
Send us an authorised copy of the repository, a description of the environment with no secrets in it, and two workflows your business cannot do without.




