A MySQL Schema Documentation Generator for Laravel.
- Require this package with composer:
composer require unisharp/doc-us
- Add
ENABLE_DOC_US
in.env
(Default is disable)
ENABLE_DOC_US=true
- Add the ServiceProvider to the providers array in
config/app.php
:
If you are using Laravel 5.5 or newer, you don’t need to do this step.
'providers' => [
/* ... */
UniSharp\DocUs\DocUsServiceProvider::class,
/* ... */
];
http://{host}/schema?format={supported-format}
Supported Formats
- html
- markdown
- json
http://{host}/schema?exclude={special-table}
Using comma to separate multiple table.
like
http://{host}/schema?exclude={table1},{table2}
vendor/bin/phpunit tests
The DocUs released under MIT license.