romanzipp / laravel-console-list-columns
List database tables columns & information.
Package info
github.com/romanzipp/Laravel-Console-List-Columns
pkg:composer/romanzipp/laravel-console-list-columns
Fund package maintenance!
1.7.0
2026-10-11 09:30 UTC
Requires
- php: ^8.3
- illuminate/console: ^12.0|^13.0
- illuminate/support: ^12.0|^13.0
- spatie/emoji: ^4.2
- symfony/console: ^7.0|^8.0
- wujunze/php-cli-color: ^2.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- mockery/mockery: ^1.6
- orchestra/testbench: ^10.0|^11.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^12.0|^13.0
- romanzipp/php-cs-fixer-config: ^3.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
When working with many database migrations you can quickly lose the overview about table structures. With this package you can get a simple overview about table and column information on your command line.
Installation
composer require romanzipp/laravel-console-list-columns
Configuration
Copy configuration to config folder:
php artisan vendor:publish --provider="romanzipp\ColumnList\Providers\ColumnListProvider"
Usage
php artisan db:cols
{table} Comma separated table names to print out
{--connection=} Specified database connection
{--no-colors} Don't use colors in output
{--no-emojis} Don't use emojis in output
php artisan db:cols users
Testing
./vendor/bin/phpunit
