← All dispatches
Laravel29 Sept 2026 · 4 min read

Taking Over an Existing Laravel Application: What I Check First

The checklist I work through before changing a single line of an inherited Laravel codebase.

▲ SHIFT UP

A lot of my work starts the same way. A business has a Laravel application, the developer who built it has gone, and something has started going wrong.

The temptation is to open the code and start fixing things. I try not to. For the first few hours I just want to understand what I'm dealing with, because the thing that looks broken is rarely the thing that's actually causing the damage.

This is roughly the order I go through it in.

One application I took over had been moved to a new server by the hosting company. Everything looked fine. The site loaded, people could log in, orders were going through. But the cron entry never came across, so none of the scheduled jobs had run since the move. No overnight stock sync, no reminder emails, no clean-up. Nobody noticed for weeks because nothing actually errored.

That's why I check the boring infrastructure before I touch the code.

1. Work out what I've actually got access to

Before anything technical, I make a list: the repository, the server or hosting account, the database, the domain and DNS, the email provider, error monitoring, and every third-party service the app talks to.

It's surprisingly common for one of these to be missing. The repo is on the old developer's personal GitHub account, or the only person with server access has left. Better to find that out on day one than in the middle of an outage.

2. Versions

php artisan about
composer outdated --direct
composer audit

php artisan about gives the Laravel and PHP versions, the environment, and which drivers are in use for cache, queue and sessions. composer audit tells me if any installed packages have known security advisories, which is a good early indicator of how long it's been since anyone looked after it.

The version isn't really the problem in itself. What matters is the gap between where it is and where it needs to be, and whether any packages have been abandoned along the way. An abandoned package can block an upgrade far more than the framework itself.

3. Is production running the code in the repository?

git status
git log -1

Run on the server, not locally. Uncommitted changes on production are one of the most common things I find. Someone fixed something urgently over SSH years ago and never committed it. The first deploy from the repo quietly undoes the fix.

4. The scheduler

Scheduled tasks live in app/Console/Kernel.php on older versions and routes/console.php on Laravel 11 and newer. Then I check the server actually runs them:

crontab -l

I'm looking for php artisan schedule:run every minute. Surprisingly often it's missing, pointing at an old path, or running as the wrong user. The application has a whole set of scheduled jobs that simply haven't run since the server was moved.

5. Queues

php artisan queue:failed

Then I check what's actually running the workers, whether that's Supervisor, Horizon or something else, and whether it's restarted on deploy. A worker that's been running for months is running months-old code.

The failed_jobs table tells you a lot. Thousands of failures from the same job usually means an integration has been broken for a long time and nobody noticed.

6. Logs

I look at the size of storage/logs and what's actually in it. A multi-gigabyte log file full of the same exception every few seconds is a problem in itself, and it's usually hiding the errors that matter.

7. The database

php artisan migrate:status

I want to know if the migrations match the production schema. If tables were created or changed by hand, running migrations on a fresh environment won't produce the same database, which makes local development and testing unreliable.

I'll also look for the slow stuff: huge tables without indexes on the columns being queried, and reports doing all their work in PHP instead of SQL.

8. Integrations

I search the codebase for Http::, Guzzle clients and anything in config/services.php. Every external API is something that can break without anyone changing a line of code. I want to know which ones exist, what happens when they fail, and whether anyone would find out.

9. Security basics

  • APP_DEBUG should be false in production
  • .env must not be publicly accessible
  • Admin routes should actually be behind authentication and authorisation
  • API keys shouldn't be hardcoded in the repository

None of this is clever, but I find at least one of these on most inherited applications.

10. Tests

Are there any, and do they pass? If there aren't any, I don't write a full test suite straight away. I write tests around the areas I'm about to change, so I know I haven't broken them.

Then write it down

The output of all this is a short document: what the application does, how it's deployed, what's risky and what I'd fix first. The client keeps it whoever ends up doing the work.

What it very rarely says is "rebuild it". Most inherited Laravel applications are in better shape than their owners fear. They need stabilising and looking after, not replacing.

If you've inherited one and you're not sure what you're dealing with, that's exactly what my Laravel Rescue audit is for.

Stuck with something like this?

I take on the awkward Laravel, WooCommerce and tracking problems.

Tell me what's broken