2017 © Pedro Peláez
 

library schemaview-laravel

A simple Artisan command to view the schema of any Eloquent model

image

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

The README.md

SchemaViewLaravel

A simple artisan command to view the Schema of an Eloquent model, (*1)

Installation

  1. Composer Require: nickcousins/schemaview-laravel
  2. 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  |     |         |                |
 +----------------+------------------+------+-----+---------+----------------+

The Versions

14/05 2016

dev-master

9999999-dev

A simple Artisan command to view the schema of any Eloquent model

  Sources   Download

MIT

The Requires

 

by Nick Cousins

14/05 2016

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

14/05 2016

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

14/05 2016

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

14/05 2016

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

14/05 2016

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