Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 1.44 KB

README.md

File metadata and controls

70 lines (46 loc) · 1.44 KB

View database table information from Laravel CLI (Artisan)

Latest Version on Packagist

A small Laravel package to show basic database tables and column information from an Artisan command.

Installation

You can install the package via composer:

composer require resohead/laravel-cli-schema {--dev}

Usage

Get all tables and columns

php artisan schema:table

Get a list of all tables

php artisan schema:table --list

Get a column information for a table

php artisan schema:table --name=users

Get a column information for a table via prompt with select list

php artisan schema:table --name=

Select a table:
> users

Get a column information for a model

php artisan schema:table --model=App\\User

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.