How I Use an AI Coding Assistant on a Laravel Project: What I Delegate and What I Review
Most writing about AI coding assistants is either a feature list or a promise. This is neither. It describes how I worked with an assistant while building this website (Laravel 13 with a React front end), what I handed over, what I kept for myself, and what went wrong, with the evidence for each. It is one project and one assistant, so treat it as a field report and not as a benchmark.
What this article is, and is not
This is my own experience on one project, written from the record of that work. I did not measure how much time the assistant saved, so I make no productivity claim. The assistant was Claude Code, running in my editor and terminal. The practices at the end are recommendations that follow from what happened. They are not guarantees, and another team or another assistant may see different results.
The rules I set at the start
I did not give the assistant a free hand. These were the rules, and most of them were added after something made me want them:
- Look before you change. Inspect the existing structure, then tell me exactly what will change before changing it.
- Do not invent facts. No made-up client names, metrics, results, technologies, contact details or credentials. If a fact is missing, ask me, and leave it out until I answer.
- Show me before it is public. Drafts stay drafts until I have read them. Publishing was always my decision.
- Preserve data. Do not delete anything permanently until it has been checked, and prefer renaming or archiving.
- Be specific about what runs. Never run a blanket command such as a bare
php artisan db:seed. Name the seeder.
- Keep secrets out of the conversation. No tokens or passwords printed in output or pasted into chat.
- Test on the real system before claiming it works. Documentation is not evidence.
What I handed over
- Reading the codebase and reporting how categories, routes and the admin were built before any change.
- Repetitive structure: migrations, seeders for categories, series and service pages, and the content plan that sits behind them.
- Drafting articles and page copy from facts I supplied.
- Tests for the code it wrote, and scripts that crawled the site to check every internal link.
- Read-only investigation of servers, such as checking logs or what a workflow was configured to use, so I did not have to copy-paste evidence by hand.
What I kept
- Positioning and choices: what the site is for, which topics to write, which services to offer.
- Facts about me and my work: I supplied the case-study facts myself, and I decided what could and could not be said.
- Anything touching secrets or live systems: credentials, my automation server and what went where.
- The final read and the publish button.
- The live test: I imported the n8n workflows into my own instance, set up the credentials and confirmed the results myself.
What went wrong, and what caught it
The useful part of the record is the mistakes. Some were in the project, some were the assistant's, and one was mine.
| What happened | How it was caught | What changed |
|---|
| Published service pages and project pages returned a 500 error. A type declaration on a closure expected one class while Laravel passed another. The same bug sat in two controllers. | Not by reading the code. It showed up when the pages were actually rendered after being published. | The declaration was removed in both controllers. Since then every publish is followed by loading the real page. |
| Every call-to-action button on the new service pages pointed to a contact page that did not exist. | A review of the routes before publishing, then a script that crawled the pages and checked every internal link. | The contact page was built, and a full link check became a routine step. |
| The site still described itself as a generic tutorial site. | A review of the site settings, not of the code. | Name, description and key page copy were rewritten around the real positioning. |
| A cleanup command meant to stop a test server stopped my website's own development server, because its process pattern matched both. | The next page check failed. The assistant noticed, restarted the server and told me. | Commands that stop processes now name an exact process, not a pattern. |
| A background job wrote an older version of a results file over a newer one. | Re-reading the file and finding a line missing. | Results are checked after any background write. |
| In the live test of an integration article, the n8n workflows shared one credential for two directions and a stale queue worker sent a dead callback URL. | Only by running the real flow end to end. Both problems were invisible on paper. | The article now warns about both. A first confusion came from instructions that used the same names for credentials and for workflows. |
| The same live test showed that n8n stored a secret in plain text in its saved executions. | Reading what was actually stored after a successful run. | A security note went into the article. |
Two things stand out. First, most of these were found by running something real, a page, a crawl or a live test, and not by reading and reasoning. Second, the assistant was wrong in ordinary, human ways: a command too broad, an instruction too vague, a file overwritten. The remedy was not distrust. It was making sure every claim had a check behind it.
Practices that made the biggest difference
- Inspect first, then change. Reading the existing categories, routes and admin before touching them avoided duplicate structure and let me approve a precise plan.
- Back up before data changes, and prefer archiving to deleting. I took backups before the larger changes and archived old categories instead of deleting them. I never needed to restore, but I would not skip the step.
- Keep a written plan in the repository. The content plan, the test checklist and the results lived in files, so nothing depended on remembering a conversation.
- Make the assistant show evidence, such as status codes, log lines and the contents of a stored record, instead of a summary of what it believes happened.
- Use a separate lab for experiments. The integration test ran in a throwaway application with its own database, so my real site and its data were never at risk.
- Put gates where mistakes are expensive. Nothing was published, deleted, or sent to a live system without my say-so.
- Be precise with commands. A narrow command is easy to review. A broad one is where the damage came from.
What I would not delegate
- Claims about my own experience, clients or results. These must come from me.
- Choosing what the business offers and who it is for.
- Secrets: creating them, storing them and deciding who can see them.
- The decision to publish.
What this does not prove
It was one project, with one assistant, and one person reviewing. I did not time the work or compare it with doing it unaided, so I cannot tell you it was faster. What I can say is that the combination of an assistant that reads, runs and reports, and a person who sets rules and makes the decisions, produced work I could verify at each step.
A checklist to adopt
- Write your rules down before the first task: what it must never invent, change, run or publish.
- Ask for an inspection and a plan before any change.
- Require a backup before anything that touches data.
- Test on the real thing: render the page, run the flow, read the log.
- Keep experiments in a separate environment.
- Keep the plan, results and decisions in files in the project.
- Review commands that stop processes, delete data or touch other systems.
- Keep publishing and secrets with a human.
Frequently asked questions
Did the assistant write the whole site?
It wrote a large share of the code, structure and drafts. I set the rules, supplied the facts, tested the live flow and made the publishing decisions. The positioning and the claims are mine.
Can I trust AI-written code in production?
Trust the checks, not the author. The code in my articles was run with tests and, where possible, against the real system before I accepted it. Review it as you would a colleague's pull request.
Which tasks suit an assistant best?
In this project: reading an unfamiliar codebase, repetitive scaffolding, writing tests, checking many links, and gathering evidence from logs and servers. The judgement calls stayed with me.
Is this specific to Claude Code?
The experience is from Claude Code, but the practices (rules, inspection first, backups, evidence, gates) do not depend on the tool.
What should I never let it do unreviewed?
Publish, delete, handle secrets, or change a live system. Start there when you write your rules.
Where this fits
If you want a Laravel application built or rescued with a careful, test-driven process, see Laravel & PHP Development, or AI-Powered Web Development if you want AI features added to an existing site. To discuss a project, describe it here. More guides on this topic are collected under AI-Assisted Development.