<commit_before># SchemaViewLaravel
A simple artisan command to view the Schema of an Eloquent model

##Getting Started

1. Add `"nickcousins/schemaview-laravel": "dev-master"` to your Composer.json "Require" section
2. Run `composer update`
3. Add the following line to your config/app.php service providers:
   `nickcousins\schemaview\SchemaViewServiceProvider::class,`
4. Run the command `php artisan schema {model}` to view the schema of your chosen model

e.g.  `php artisan schema User`
to use the default application namespace

e.g.  `php artisan schema AnotherNamespace\\Class`
to specify the namespace

##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  |     |         |                |
     +----------------+------------------+------+-----+---------+----------------+<commit_msg>Updated Readme to a better layout<commit_after># SchemaViewLaravel
A simple artisan command to view the Schema of an Eloquent model

##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

e.g.  `php artisan schema User`
to use the default application namespace

e.g.  `php artisan schema AnotherNamespace\\Class`
to specify the namespace

##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  |     |         |                |
     +----------------+------------------+------+-----+---------+----------------+
{'fraction_non_alphanumeric': 0.22024754046334497, 'fraction_numerical': 0.010155506188511583, 'mean_word_length': 1.0874172185430464, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '584212', 'n_tokens_mistral': 855, 'n_tokens_neox': 786, 'n_words': 224}