resohead/laravel-cli-schema

List database table schema from Artisan (Laravel CLI)

v0.1.0 2020-06-14 10:07 UTC

This package is auto-updated.

Last update: 2024-06-14 20:58:47 UTC


README

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 s.white9904@gmail.com instead of using the issue tracker.

Credits

License

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