Access Laravel application database information from php artisan command
thedevsaddam wrote a nice Laravel package that we can use to display our app's database schema information from Terminal.
Laravel Schema
This package will help to display database schema information from Terminal.
Available commands / Features
php artisan schema:help
Display the available commands and usages.php artisan schema:simple
Display overall tables with total rows count.php artisan schema:list
Display all the available tables. schema information in list (please see details below).php artisan schema:show
Display all the available tables schema information in tabular form (please see details below).php artisan schema:table --t=yourTableName or --t=Namespace\\Model
Display a table's paginated data (please see details below).php artisan schema:query --r="wirte your raw sql query in double quote"
Perform a sql query.php artisan schema:monitor
Display database server status.
Some screenshots
Find more on here--> laravel-schema
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Packages Sources Laravel 5 Laravel 5.3 Laravel 5.2 Intermediate