What to Do When You Inherit a Laravel App From an Agency

Prashant Singh at his laptop beside a four-step plan to inherit a Laravel app from an agency: take over the accounts, change every secret, check versions and audit the code

Your agency contract has ended, or the agency has stopped replying to emails, and your company now owns a Laravel app that nobody on your team can open. Customers still log in and pay through it every day. Before you hire the next developer or sign a rebuild quote, take control of the accounts and the code in the order this guide sets out.

I’m Prashant Singh, and I’ve built Laravel and PHP apps for clients since 2014. Part of that work has been taking over SaaS codebases that another team started and restructuring them. Below is what to do when you inherit a Laravel app from an agency, in the order I’d follow on a new client’s app. There’s a 30-day checklist near the end that you can print.

Key Takeaways

  • In 2025, Verizon found that third-party involvement in data breaches had doubled to 30%. An agency that still holds your logins is a third party.
  • Move the domain, server, code repository and payment accounts into your company’s name before the agency’s last day.
  • Change every secret the agency could see. GitGuardian found 64% of valid secrets it tracked from 2022 were still active four years later.
  • PHP 8.2 loses security fixes on 31 December 2026. Add AI features once the app runs supported versions.

What Should You Do First When You Inherit a Laravel App From an Agency?

Start by moving every account the app depends on into your company’s name, beginning with the domain and the server. In 2025, Verizon’s Data Breach Investigations Report found that third-party involvement in breaches had doubled to 30%, across the 12,195 confirmed breaches it analysed, according to Verizon’s press release Alarming surge in cyberattacks through third-parties (retrieved 2026-11-13). An agency that still has admin logins to your server counts as one of those third parties.

Open each account in the table below and check whose email address owns it. When it’s an address at the agency, ask them to transfer ownership to a company address while the contract still runs and someone there still answers your messages.

AccountExamplesWhat to check
Domain registrarGoDaddy, NamecheapThe registrant email is yours, auto-renew is on and the card belongs to your company
DNS and CDNCloudflareYou are the account owner and the agency is no longer a member
Server or hostingAWS, DigitalOcean, Laravel ForgeYou hold the owner or root login, and billing is in your company’s name
Code repositoryGitHub, Bitbucket, GitLabYour company owns the organisation, with every branch and the full history
Database backupsS3 bucket, host snapshotsA recent backup exists and you have restored it once
Email sendingAmazon SES, Mailgun, PostmarkThe API keys sit under your account and the sending domain is verified there
PaymentsStripe, Razorpay, PayPalYou are the business owner on the account, and the agency is a team member at most
App storesApple Developer, Google Play ConsoleIf there is a mobile app, the developer account is in your company’s name
Outside APIsGoogle Cloud, OpenAI, TwilioEach key is billed to your company’s card
The accounts a Laravel app depends on. Move each one into your company’s name before the agency’s last day.

Restore one backup onto a spare server before you change anything else, then log in to the restored copy and check that last week’s orders or sign-ups are in it. You’ll run the audit later on this copy, so your tests never touch live customers. Some agencies host client apps together on one shared server. If yours did, you’ll need a server of your own anyway, and my VPS setup guide for Laravel, PHP, Apache and MySQL on Ubuntu walks through building one.

What Should You Ask the Agency Before the Handover Ends?

Ask about everything that exists only in the agency’s memory or on its laptops. Send the questions by email and keep the replies, because the developer who knows the answers can leave the agency at any time.

  1. Which branch runs in production, and is every change on that server committed to it?
  2. Where is the production .env file kept, and which values differ from .env.example?
  3. What scheduled tasks and queue workers run on the server, and how are they started?
  4. Does the app call outside services or receive webhooks from them? Ask for the full list.
  5. How is the app deployed today? A script, Laravel Forge, Envoyer and files copied over SSH all need different handover notes.
  6. Are any parts of the code unfinished or known to break, and what workaround do staff use for them?
  7. Who at the agency can you call during the next 30 days if something fails?
  8. Does the contract assign ownership of the code to your company?

Ask the first question even when the agency says it uses Git. A fix made directly on the live server and never committed disappears the day a new developer deploys from the repository. Compare the server’s files with the main branch before anyone deploys again. If the contract has no clause that assigns the code to your company, speak to a lawyer before the relationship ends.

How Do You Remove the Agency’s Access Without Breaking the App?

Change every secret the agency could have seen, from database passwords to API keys, one service at a time, and test the app after each change. In 2026, GitGuardian’s report The State of Secrets Sprawl 2026 said that 64% of the valid secrets it tracked from 2022 were still active and exploitable four years later (retrieved 2026-11-13).

In a Laravel app most of these keys sit in the .env file on the server. Change each key at the provider, paste the new value into .env and run php artisan config:cache again if the app caches its configuration. Test whatever depends on that key straight after, for example by sending a password-reset email once the mail key has changed.

Leave APP_KEY alone until a developer has checked what it protects. Laravel uses it to encrypt session cookies and any values the code stores with its encryption features. A new key logs every user out and can leave encrypted columns unreadable.

Then remove the people. Delete the agency’s SSH keys from the server’s authorized_keys file and remove their accounts from GitHub, Cloudflare, Laravel Forge and the hosting panel. Change the root or admin password on every service they could reach.

Search the repository history for any .env file that was committed by mistake. Deleting the file in a later commit leaves the old values in the history, so treat every key found there as exposed. GitGuardian’s 2026 report also found internal repositories were six times more likely than public ones to contain hardcoded secrets. A private repository needs the same search.

Which Laravel and PHP Versions Does Your App Run?

Run php artisan about on the server and read the version lines near the top. In 2026, Laravel gives every release two years of security fixes, according to the Laravel 13.x release notes (retrieved 2026-11-13). Laravel 12 gets them until 24 February 2027 and Laravel 13 until 17 March 2028. Both 10 and 11 are past their end dates.

PHP has its own calendar. Its 8.2 branch gets the last security fix on 31 December 2026, 48 days after 13 November 2026, per PHP.net’s Supported Versions page (retrieved 2026-11-13). Version 8.3 stays covered until 31 December 2027, and Laravel 13 needs it or newer.

Laravel 11 Ended 12 Mar 2026 0 days PHP 8.2 Ends 31 Dec 2026 48 days Laravel 12 Ends 24 Feb 2027 103 days PHP 8.3 Ends 31 Dec 2027 413 days Laravel 13 Ends 17 Mar 2028 490 days PHP 8.4 Ends 31 Dec 2028 779 days Under 6 months of security fixes left More than 6 months left
Days of security fixes left as of 13 November 2026. Sources: Laravel 13.x release notes and PHP.net Supported Versions, both retrieved 2026-11-13.

Laravel’s own upgrade guide estimates 10 minutes to move from Laravel 12 to 13 (retrieved 2026-11-13). That estimate assumes current packages, so run composer outdated on an inherited app first. Each package with no release for the new Laravel version has to be replaced or patched before the upgrade can finish. If the server’s PHP needs updating too, my PHP2Shell patch guide shows how to update PHP and confirm which version the site runs.

How Do You Audit an Inherited Laravel Codebase?

Audit the restored copy and leave the code unchanged until the audit is finished. In 2025, Verizon’s DBIR found that exploiting a vulnerability was the first step in 20% of breaches, after a 34% rise, in the same 2025 DBIR press release (retrieved 2026-11-13). Old Composer packages with published security holes are where I start.

CheckCommand or placeA bad sign
Composer packagescomposer auditAny security advisory, or a package marked abandoned
Debug modeAPP_DEBUG in the production .envSet to true
Testsphp artisan testNo tests at all, or tests that fail
Queue workersSupervisor config and php artisan queue:failedNo worker running, or a long list of failed jobs
Schedulercrontab -l on the serverNo schedule:run entry, so scheduled commands never run
Slow pagesLaravel Debugbar on the restored copyHundreds of database queries on one page
Logsstorage/logsThe same error repeating every day
Server-only codeServer files compared with the main branchFiles that differ from Git
Eight read-only checks to run on the restored copy of an inherited Laravel app.

The Composer documentation says composer audit checks installed packages against security advisories from the Packagist.org API, and it flags abandoned packages as well (retrieved 2026-11-13). Debug mode needs a look on the live server too. Laravel’s configuration docs say APP_DEBUG should always be false in production, since a true value risks exposing sensitive configuration values to the app’s users (retrieved 2026-11-13).

A missing queue worker shows up as slow imports and emails that never arrive. On Let’s Calendar, a bulk calendar invite SaaS, contact import used to time out at about 5,000 contacts. After I moved it into chunked background jobs, it imported 101,096 contacts in under a minute on the same server. My guide to running Laravel queue workers with Supervisor on AWS EC2 covers the worker setup.

Check the queries before you pay for a bigger server. ArcticBlue, an Australian e-commerce store, ran at about 60% server CPU and hit 100% during business hours, which took the site down. Its Laravel rebuild added database indexes and rewrote the slowest queries. Cloudflare now blocks bots before they reach the server, and average CPU dropped to about 5% on the same instance with no capacity upgrade.

The most common cause of a slow Laravel page is the N+1 query problem, where one eager-loading change can remove hundreds of queries from a single page.

When Can You Add AI Features to an Inherited Laravel App?

Add AI features once you hold every account and the app runs a supported Laravel version with a working queue. The official Laravel AI SDK, laravel/ai 1.4.0, needs PHP 8.3 and Laravel 12 or 13, per its Packagist listing (retrieved 2026-11-13). An app on an older version can call the same AI providers through Laravel’s HTTP client while the upgrade gets planned.

AI calls take a few seconds and fail now and then, so they belong in queued jobs. Choose the manual task your staff spend the most hours on and automate that one first, with a person approving each AI draft. At Manomay Informatics, automation I built with Zapier and the OpenAI API cut manual operations by 80% for enterprise clients, and my AI automation case study has the details.

My guide to adding AI to an existing Laravel app covers the queued-job pattern with code. To check whether your app has enough manual work to automate in the first place, go through the seven signs your Laravel app needs AI automation.

Wait for the audit results before you reply to any rebuild quote. A rewrite makes sense when the database design or the framework version is past repair. My post on backend mistakes that stop startups from scaling shows the foundation problems to look for.

Once the audit is done, use the full modernize-vs-rewrite framework to score the app before you answer the quote.

Your 30-Day Laravel Handover Checklist

Work through the rows in order and tick each one off. The days assume a small app on one server with one database.

WhenTask
Days 1 to 3Send the eight handover questions to the agency and save the replies
Days 1 to 3Move the domain, DNS, server, repository and payment accounts into your company’s name
Days 3 to 5Restore a backup onto a spare server and check that recent data is in it
Days 5 to 7Change passwords and API keys, then remove the agency’s users and SSH keys
Week 2Run php artisan about, composer audit and composer outdated on the copy
Week 2Check debug mode, tests, queue workers, the scheduler and the logs
Week 3Write one page on what the app does: scheduled jobs, integrations, webhooks and deploy steps
Week 4Plan the version upgrade and pick the first manual task to automate
The 30-day handover checklist for a Laravel app inherited from an agency.
Infographic of a 30-day Laravel handover checklist in four weeks: take over accounts and change secrets, check versions and run the audit, document the app, then plan the upgrade and the first automation
The 30-day handover checklist, ready to print or share with your next developer.

Frequently Asked Questions

What should I get from an agency before I take over a Laravel app?

Get the full Git repository with every branch, the production .env values and owner access to the domain, DNS, server and payment accounts. Ask for written notes on scheduled tasks, queue workers, integrations and deployment as well, while the contract still runs. In 2025, Verizon found third-party involvement in breaches had doubled to 30%.

How do I find out which Laravel version my app runs?

Run php artisan about on the server, or open composer.lock and search for laravel/framework. In November 2026, Laravel 12 gets security fixes until 24 February 2027 and Laravel 13 until 17 March 2028, according to the Laravel 13.x release notes. Laravel 10 and 11 get no fixes now, so plan the upgrade first.

Should I change all the passwords after an agency hands over a project?

Yes. Change every password and API key the agency could see, one service at a time, and test the app after each change. GitGuardian’s 2026 report found 64% of valid secrets it tracked from 2022 were still active four years later. Ask a developer about APP_KEY first, because a new key logs every user out.

Can I add AI features to a Laravel app an agency built?

Yes, once the app runs a supported version with working queue workers. The official Laravel AI SDK, laravel/ai 1.4.0, needs PHP 8.3 and Laravel 12 or 13, per its Packagist listing. Older apps can call the same AI providers through Laravel’s HTTP client from a queued job while the upgrade is planned.

Should I rewrite a Laravel app I inherited from an agency?

Decide after the audit. A rewrite makes sense when the database can’t model how the business works today, or when the app runs Laravel 5 with no tests. If it runs a supported version and customers use its main screens without complaint, keep it and fix the weak parts one module at a time.

Want a Second Pair of Eyes on the App You Inherited?

Send me the agency’s handover notes or access to the repository, and I’ll go through this checklist on your app with you. You’ll get a written list of what needs fixing first, along with my view on whether the app is worth keeping. Message me on WhatsApp, or use the email and phone details on the contact page.

If you need a developer to keep building the app after the handover, my website development page explains how I take on ongoing work.


Sources