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

L5Scaffold Laravel Package

laralib/l5scaffold

Laralib/l5scaffold is a Laravel 5 CRUD scaffold generator that quickly creates migrations, models, controllers, views, and routes from your database tables, speeding up admin panels and backend prototyping with consistent, ready-to-customize code.

View on GitHub
Deep Wiki
Context7

Scaffold generator for Laravel 5.x

Frequently asked questions about L5Scaffold
How do I install laralib/l5scaffold in a Laravel 5 application?
Install it with Composer, typically as a require-dev dependency so it never reaches production. Because the last release predates Laravel 5.5 auto-discovery, you must manually add the package service provider to the providers array in config/app.php. There is no configuration file to publish, so once the provider is registered you can immediately run the scaffold command.
Which Laravel and PHP versions does l5scaffold support?
It targets Laravel 5.x applications running on PHP 7.x, and its final release dates from July 2016. There has been no compatibility work for Laravel 6 through 11 and no PHP 8 support. Treat any project on a newer framework version as incompatible until you have verified it in a sandbox.
What files does l5scaffold generate for a table?
The generator emits a migration, an Eloquent model, a resourceful controller, Blade views and the matching route entries in one pass. Output is plain application code that you own and edit afterwards, not a runtime dependency. That makes it useful for bootstrapping admin panels and backend prototypes with consistent boilerplate.
How do I specify field names and types when running the scaffold command?
You pass a schema declaration on the command line as a comma-separated list of field name and type pairs, for example title:string,body:text. The generator reads that declaration and writes the corresponding migration columns, model fillables, form inputs and table headings. Only simple column types are understood, so anything beyond that is a manual edit after generation.
Does l5scaffold support foreign keys, indexes, enums, soft deletes or relationships?
Expect only basic scalar column types from the schema declaration. Foreign keys, indexes, enums, soft deletes and polymorphic relations are not modelled by the generator, so you add them to the migration and model by hand. Verify generated output against your real entities before assuming the scaffold covers them.
Is laralib/l5scaffold still maintained?
No. The package has had no release since July 2016 and carries roughly 300 GitHub stars with no active upstream work. There are no bug fixes, no framework compatibility updates and no support channel beyond reading the source. Plan for a one-time fork if you decide the tool is worth keeping.
Why doesn't l5scaffold work on Laravel 6 or later?
The stubs come from the Laravel 5 era and typically emit global str_ and array_ helpers, laravelcollective/html Form and Html facades, and older Blade directives that were removed or deprecated later. Even where the generator command itself still runs, the code it produces may not be idiomatic or runnable on a modern skeleton. Always diff generated output against a current Laravel skeleton before committing.
Is it safe to install l5scaffold in a production Laravel application?
It is a dev-time Artisan generator, so it holds no request-path code and should be installed with require-dev only. The supply-chain surface is materially smaller than a runtime package because a compromised generator only affects developer machines and generated files, both of which pass through version control and code review. State that explicitly to security reviewers rather than leaving it implicit.
Does l5scaffold generate tests, factories, form requests or API resources?
No. The output is CRUD-only scaffolding with Bootstrap 3-era markup. You get no generated form requests, policies, factories, tests or API resource classes, so the code should be treated as a first draft that passes review only after house-style cleanup. If your conventions require those artifacts, budget time for them or fork the stubs.
What are the alternatives to l5scaffold for newer Laravel versions?
For Laravel 6 and later you need a maintained generator or an internal tool, because l5scaffold cannot be adopted as-is. The practical options are forking l5scaffold under its MIT licence, replacing the stubs with your house style, and adding static analysis and formatting, or mining its command structure as a reference design for a generator you own. Pin and contain the original package only on a legacy Laravel 5 branch you are still maintaining.
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.
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
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections