resohead / laravel-cli-schema
List database table schema from Artisan (Laravel CLI)
Requires
- php: ^7.1
- illuminate/support: ^6.0|^7.0
Requires (Dev)
- orchestra/testbench: ^4.0|^5.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-03-14 22:44:17 UTC
README
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.