romanzipp/laravel-console-list-columns

List database tables columns & information.

1.6.2 2024-03-19 08:40 UTC

This package is auto-updated.

Last update: 2024-10-19 09:51:10 UTC


README

Latest Stable Version Total Downloads License GitHub Build Status

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

Preview

Testing

./vendor/bin/phpunit