schickling / laravel-schema-summary
Creates a summary file of all migrations
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 1
pkg:composer/schickling/laravel-schema-summary
Requires (Dev)
- laravel/framework: 4.1.*
This package is not auto-updated.
Last update: 2025-10-11 21:32:57 UTC
README
Creates a summary file of all migrations. This package is inspired by the schema.rb file of Active Record Migrations.
Installation
-
Add the following to your composer.json and run
composer update{ "require": { "schickling/laravel-schema-summary": "dev-master" } } -
Add
Schickling\SchemaSummary\SchemaSummaryServiceProviderto your config/app.php
Usage
The following command creates a Schema.md file in your app/database directory which contains a summary of all migrations. This summary can be understood as one big migration for documentation purposes.
$ php artisan migrate:schema
Example Output
users
| Field | Type | Length | Unsigned | Default |
|---|---|---|---|---|
| id | INT | 10 | yes | |
| name | VARCHAR | 128 (default) |
photos
| Field | Type | Length | Unsigned | Default |
|---|---|---|---|---|
| id | INT | 10 | yes | |
| user_id | INT | 10 | yes | 0 |
| url | VARCHAR | 128 (default) |