# How to customise a Laravel script without breaking updates

Source: https://biply.org/blog/how-to-customise-a-laravel-script-without-breaking-updates | Published 2026-11-25 | Guides

You bought a script because it saves months of work. Then you start changing it, and six months later a new version ships with a security fix you cannot install because it would overwrite everything you did. This is the most common regret among script buyers, and it is avoidable. Here is how to customise a Laravel script so you can keep updating it.

## Rule 1: change settings before you change code

Before you open a single file, check what the admin panel and the `.env` file already control: name, logo, colours, currencies, payment gateways, email templates and languages. Anything that can be changed through settings survives updates automatically. Most buyers can launch with no code changes at all.

## Rule 2: keep a clear list of what you changed

If you must edit files, write each change down: which file, what you changed and why. A simple text file in your project is enough. When an update arrives, that list is how you re-apply your work in minutes instead of days.

## Rule 3: put new things in new files

The safest customisation is a **new file** rather than an edited one. Add your own controller, view or migration beside the existing ones, and connect it with a small change. New files are never overwritten by an update, and the small connecting edit is easy to list and re-apply.

## Rule 4: use version control from day one

Put the original script in Git before you change anything. Commit your customisations on a branch. When a new release arrives, you can compare it with your original and merge the differences with proper tooling. Without version control, merging an update is guesswork.

## Rule 5: never edit the vendor folder

The `vendor` directory holds third-party packages. Changes there disappear the next time dependencies are installed. If a package needs different behaviour, extend it from your own code.

## Rule 6: keep your database changes additive

Add new tables and columns through your own migrations rather than altering the script's existing ones. Additive changes rarely conflict with updates, while edits to existing columns often do.

## Rule 7: test before and after

Run the script's test suite (many of ours ship with hundreds of automated tests) before you customise and again after each change. A test that fails right after your edit tells you exactly what you broke.

## Rule 8: know when to ask for help

Some changes are simply large: a new payment provider, a country pack, a mobile app rebrand or a new module. A professional can do them in a way that stays update-friendly. This is what [Biply Agency](/agency) does: we wrote the scripts, so we know where changes belong. See our [case studies](/agency/case-studies) for what clients typically ask for.

## A quick checklist

1. Use settings, themes and language files first.
2. Write down every file you edit.
3. Add new features as new files.
4. Keep everything in Git.
5. Never touch `vendor`.
6. Add database changes as new migrations.
7. Run the tests before and after.

For installation basics, read [how to install a Laravel script on cPanel hosting](/blog/how-to-install-a-laravel-script-on-cpanel-hosting). For what you own when you buy, see [licences and source code explained](/blog/buying-a-laravel-script-licences-source-code-and-what-you-own).