AIToday
AI Coding AssistantsLarge Language ModelsZenn AI/MLPublished: Nov 20, 2026, 04:00 JST

Developer keeps CRUD generator for Laravel + Vue, redraws line 3 times

Send on LINE
Developer keeps CRUD generator for Laravel + Vue, redraws line 3 times

3 Key Points

  1. What happened

    Told by another AI that CRUD generators are no longer worth their upkeep, the developer kept a Laravel + Vue generator but split its output by whether business judgment lives in it. Machine-decided pieces like Models and validation-rule data are regenerated every run, while Controllers and FormRequests get a one-time scaffold only.

  2. Why it matters

    Regenerating files that must hold business branching pushes teams to bypass them with handwritten copies. Splitting by business judgment keeps the generator's output from silently drifting out of sync with the definition files.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

By signing up you agree to the Terms of Service and Privacy Policy.

Context & Analysis

The starting point was a design for a custom development platform on Laravel + Vue, where writing entities, tables, fields, and screens into YAML definition files would generate a full CRUD set. The developer had seen the same idea at a previous workplace and had built something similar before, so he set out to rebuild it for the AI era. Then a separate AI, distinct from the one he codes with, argued that the expensive part is not the generated code but the conventions around permissions, audit logs, transactions, and error handling, which belong in guardrails rather than a generator. He accepted that and dropped plans for a giant generator, including DB reverse-lookup, diff merging, and @generated markers. But he kept the generator itself for three reasons: the platform must run on days AI cannot be used, the barrier of ten-plus files per table does not fall just because AI exists, and teams want readable code they can edit rather than screens generated at runtime.

The three redrawings each exposed a different failure. First, adding a field and regenerating rewrote an already-applied migration, silently desynchronizing the definition file and the database; the fix was to emit migrations once and never touch them again. Second, placing Controllers and FormRequests on the regenerate-and-never-edit side led developers to build handwritten versions alongside them, leaving the generated versions as dead code that the machine kept faithfully updating; the fix was to stop drawing the line per file. Third, because the line was per file, one-time scaffolds baked in copies of things the definition file already determines mechanically, which drifted as soon as the definition changed; the fix was to switch the unit from file to data-versus-code. The current split regenerates pure data and code that the definition fully determines, and emits one-time scaffolds for anything that must carry business branching, which the definition file cannot decide.

FAQ
Why keep a CRUD generator at all if AI can write CRUD code?
The developer wanted a base that still runs on days when AI is unavailable due to outages, pricing, or contract limits. He also judged that generating a table's ten-plus files still lowers a real barrier for teams, and that teams prefer readable physical code to runtime-generated screens.
What exactly gets regenerated every time?
Models, enums, definition projection data for PHP and TS, frontend enum mirrors and screen modules. Migration files are a special case: they are emitted once and never touched again so already-applied schema changes are not silently overwritten.
Has the generator been measured against AI or handwriting?
No. Only one entity has gone through it in production, and the developer says speed comparisons with AI or handwriting have not been done. He plans to count them once more entities are built.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

By signing up you agree to the Terms of Service and Privacy Policy.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleAI人事: AI for hiring, evaluation and labor tasks