Looking to hire Laravel developers? Try LaraJobs

laravel-schema-markdown maintained by yanzhen0610

Description
Make descriptions of schema with markdown for Laravel migrations.
Author
Last update
2020/03/22 10:47 (dev-master)
License
Links
Downloads
57

Comments
comments powered by Disqus

Laravel Schema Markdown

Latest Stable Version Total Downloads Latest Unstable Version License test codecov

Install

composer require --dev yanzhen0610/laravel-schema-markdown

Run

In your Laravel project root

php artisan make:schema-md

and the schema description will be generated at ./schema.md.

Usage

$ php artisan make:schema-md --help

Description:
  Make a markdown documentations of migration files

Usage:
  make:schema-md [options]

Options:
      --force                Force the operation to run when in production
      --database[=DATABASE]  The database connection to use [default: "schema-markdown"]
      --path[=PATH]          The path(s) to the migrations files to be executed (multiple values allowed)
      --realpath             Indicate any provided migration file paths are pre-resolved absolute paths
      --step                 Force the migrations to be run so they can be rolled back individually
  -o, --output[=OUTPUT]      The output path for the generated markdown [default: "./schema.md"]
  -h, --help                 Display this help message
  -q, --quiet                Do not output any message
  -V, --version              Display this application version
      --ansi                 Force ANSI output
      --no-ansi              Disable ANSI output
  -n, --no-interaction       Do not ask any interactive question
      --env[=ENV]            The environment the command should run under
  -v|vv|vvv, --verbose       Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Example

schema.example.md (From ladybirdweb/faveo-helpdesk)