library schemaview-laravel
A simple Artisan command to view the schema of any Eloquent model
nickcousins/schemaview-laravel
A simple Artisan command to view the schema of any Eloquent model
- Saturday, May 14, 2016
- by NickCousins
- Repository
- 2 Watchers
- 52 Stars
- 238 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 5 Forks
- 1 Open issues
- 6 Versions
- 0 % Grown
SchemaViewLaravel
A simple artisan command to view the Schema of an Eloquent model, (*1)
Installation
- Composer Require:
nickcousins/schemaview-laravel
- Add the following line to your config/app.php service providers:
nickcousins\schemaview\SchemaViewServiceProvider::class,
Usage
Run the command php artisan schema {model} to view the schema of your chosen model, (*2)
e.g. php artisan schema User
to use the default application namespace, (*3)
e.g. php artisan schema AnotherNamespace\\Class
to specify the namespace, (*4)
Sample Output
Schema for Model: App\User
Table: users
+----------------+------------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+----------------+------------------+------+-----+---------+----------------+
| id | int(10) unsigned | NO | PRI | | auto_increment |
| name | varchar(255) | NO | | | |
| email | varchar(255) | NO | UNI | | |
| password | varchar(60) | NO | | | |
| remember_token | varchar(100) | YES | | | |
| created_at | timestamp | YES | | | |
| updated_at | timestamp | YES | | | |
+----------------+------------------+------+-----+---------+----------------+
dev-master
9999999-dev
A simple Artisan command to view the schema of any Eloquent model
Sources
Download
MIT
The Requires
by
Nick Cousins
v0.2.3
0.2.3.0
A simple Artisan command to view the schema of any Eloquent model
Sources
Download
MIT
The Requires
by
Nick Cousins
v0.2.1
0.2.1.0
A simple Artisan command to view the schema of any Eloquent model
Sources
Download
The Requires
by
Nick Cousins
v0.2.2
0.2.2.0
A simple Artisan command to view the schema of any Eloquent model
Sources
Download
The Requires
by
Nick Cousins
v0.2
0.2.0.0
A simple Artisan command to view the schema of any Eloquent model
Sources
Download
The Requires
by
Nick Cousins
v0.1
0.1.0.0
A simple Artisan command to view the schema of any Eloquent model
Sources
Download
The Requires
by
Nick Cousins