romanzipp/laravel-console-list-columns
A small Laravel package that lets you list a database table's columns directly from the console, showing names, types, and attributes in a clean table. Handy for quickly inspecting schemas while debugging migrations or models.
information_schema and pretty-prints column metadata. That is a ~50–150 line in-house command. The decision this package actually informs is "do we spend a sprint-day writing this, or drop in a Composer dependency?" — and the honest answer is usually: borrow the idea (or vendor the file) rather than take the dependency. The 1.2.2 release improves this calculus slightly by removing phplucidframe/console-table in favor of symfony/console, which every Laravel app already ships — so the marginal dependency weight is now close to zero. It is still a 5-star, low-dependent package with a single maintainer-shaped footprint.orders" command removes a GUI client dependency and a Slack question to the DBA.Consider it when:
php artisan db:show, db:table, or model:show. Those built-ins landed in Laravel 10.x and largely absorb this package's job.app/Console/Commands. This sidesteps the maintenance risk entirely and is the option I'd recommend most often.console-table to symfony/console, so any snapshot or golden-file comparison built against pre-1.2.2 output should be re-baselined once.Look elsewhere when:
db:table <table>, db:show, and model:show commands. Zero dependency, actively maintained, better output. This alone disqualifies the package for most teams today.console-table → symfony/console swap removes one version-alignment headache (it now tracks the Symfony major that your Laravel version already pins), but a 2020-vintage introspection command still predates a lot of Laravel and PHP churn, and historically this class of package leaned on doctrine/dbal, which has its own alignment pain. Budget a compatibility spike or don't bother.barryvdh/laravel-ide-helper (which gives you column docblocks in your models, arguably more useful) cover the same ground with better ergonomics.schema:dump, a migration-diff tool, or a proper database tool.To executives: This is an internal developer convenience tool, not a product capability. Cost of adoption is effectively zero (MIT, no vendor relationship, and as of 1.2.2 no exotic transitive dependencies either), and so is the upside — a marginal reduction in the time engineers spend asking "what's in this table?" It carries no revenue, no customer impact, and no strategic weight. Recommendation for the roadmap: do not allocate product capacity. If engineering wants it, let it ride as a self-serve DX nicety inside an existing sprint rather than as a planned initiative. The recent patch is a maintenance signal, not a reason to re-plan.
To engineering: The idea is worth ten minutes; the dependency is probably worth skipping. On Laravel 10+ the framework already gives you db:table, db:show, and model:show — use those and close the ticket. If you're pinned to an older major, or you specifically want console-only schema output for docs and triage, either vendor the command into app/Console/Commands (recommended — 1.2.2 dropping console-table for symfony/console is a good sign and makes vendoring cleaner, but it's still a one-off housekeeping release after five years of silence, with no dependents and no maintainer bandwidth to speak of) or read the source and write your own against information_schema. Either way, verify it works on your engine (MySQL vs. Postgres vs. SQLite) and on your symfony/console major before it becomes load-bearing, re-check any output snapshots if you were already pinned to a pre-1.2.2 version, and don't let it into a scripted pipeline without someone owning it.
How can I help you explore Laravel packages today?