Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Code Generator

Laravel Code Generator Laravel Package

crestapps/laravel-code-generator

Laravel Code Generator scaffolds CRUD code from database tables or simple definitions, generating models, controllers, requests, routes, migrations, views, and language files with customizable templates. It accelerates admin panels and APIs while producing clean, Laravel-friendly code.

View on GitHub
Deep Wiki
Context7

An efficient Laravel code generator, saving time by automating the creation of resources such as views, controllers, routes, migrations, languages, and form-requests. Highly flexible and customizable, it includes a cross-browser compatible template and client-side validation for application modernization.

Frequently asked questions about Laravel Code Generator
How do I install crestapps/laravel-code-generator in a Laravel app?
Install it with Composer as a development dependency, for example composer require --dev crestapps/laravel-code-generator, rather than adding it to production runtime requirements. Then run its Artisan commands from your Laravel project to scaffold the resources you need. Because it is a development-time tool, keep the generated output under normal source control and review it like handwritten code.
Which Laravel and PHP versions does laravel-code-generator support?
The v3.0.2 patch release specifically fixes Laravel 11 compatibility for a missing Kernel class, so Laravel 11 is the most relevant validation target for that version. Always confirm compatibility against your team's exact Laravel and PHP matrix, including any Laravel 10 or Laravel 12 usage, before rolling it out. Pin the package version and re-run a pilot after each Laravel upgrade to catch drift early.
Can laravel-code-generator scaffold CRUD code from an existing database table?
Yes. The package generates CRUD scaffolding either from existing database tables or from simple definitions you provide. That makes it useful for turning a legacy or newly designed schema into models, migrations, controllers, form requests, routes, and views quickly. Review the generated output against your schema and relationships before merging.
Will regenerating code overwrite my custom changes?
Regeneration can overwrite customizations, which is one of the main risks of any scaffolding tool. Avoid blind regeneration into existing application code. Instead, generate into an isolated namespace or module, inspect the diff carefully, and merge only the reviewed output. Once generated, the code becomes team-owned application code.
What files does laravel-code-generator create?
It automates creation of resources such as models, controllers, form requests, routes, migrations, views, and language files. That output is useful for accelerating admin panels and API-oriented CRUD screens while staying close to Laravel MVC conventions. Generated migrations, requests, and controllers should still be reviewed and hardened before production use.
Can I customize the templates and stubs to match my team's conventions?
Yes, the package is described as highly flexible and customizable, with templates and a cross-browser compatible client-side validation template for application modernization. Teams should customize stubs early so generated code matches their naming, authorization, and validation conventions. Treat stub customization as an owned, versioned asset and re-test it after package upgrades.
Is crestapps/laravel-code-generator safe to use in production?
It is best treated as a development-time Artisan scaffolding tool, not a production runtime dependency. Install it as require-dev, commit the generated code, and review it through your normal pull-request and CI process. Generated code may lack your authorization and security defaults, so harden it before deploying.
How should I test or review generated code before merging?
Pilot one low-risk CRUD module in a disposable Laravel 11 app with a representative schema and relationships. Inspect the diff for migrations, models, controllers, requests, routes, and views, then add CI checks such as linting, static analysis, tests, and migration rollback checks. Only roll the generator out to additional modules once the pilot passes review.
Is laravel-code-generator actively maintained and how often is it updated?
The project is open source, and v3.0.2 is a patch release containing a Laravel 11 Kernel compatibility fix plus docs-only dependency bumps. Upstream support depends on the maintainers and community responsiveness, so assign an internal owner for upgrade testing and issue escalation. Track releases, especially Laravel compatibility patches, and update the pinned version deliberately alongside Laravel upgrades.
What are alternatives to laravel-code-generator for scaffolding CRUD?
Alternatives include manual Artisan make commands, other Laravel CRUD generator packages, and schema-driven blueprint-style tools. The right choice depends on how much customization your domain requires and how much generated code you are willing to review. For highly custom domain logic or DDD-style boundaries, manual scaffolding or a generator with tighter template control is often a better fit.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo