Skip to content

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

License

Notifications You must be signed in to change notification settings

resohead/laravel-cli-schema

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages