/laravel-schemaspy-meta

Generate meta.xml for schemaspy

Primary LanguagePHPMIT LicenseMIT

laravel-schemaspy-meta

Requires

install php_ast
https://github.com/nikic/php-ast#installation

Installation

composer require --dev mya-zaki/laravel-schemaspy-meta

Generate XML

php artisan schemaspy-meta:generate

arguments

namespace: string | App
The namespace of Eloquent Models. e.g. App\\Models, 'App\Models'

options

--xmlFile: string | schemaspy-meta.xml Output path of schema xml.

--excludeClass: array (optional) The specified classes are ignored.

e.g.
--excludeClass Foo --excludeClass Bar

Configration

Run the command

php artisan vendor:publish

Select Provider: Provider: MyaZaki\LaravelSchemaspyMeta\SchemaspyMetaServiceProvider

The file schemaspymeta.php will then be copied to _app/config.

Exclude subclasses that inherit the specified superclasses.

References