Laravel-Console-List-Columns

Quick Command to list DB Table Columns & Information

MIT License

Downloads
11.4K
Stars
5
Committers
2

Laravel Console List Columns

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