Download the PHP package nachofassini/laravel-database-structure without Composer
On this page you can find all versions of the php package nachofassini/laravel-database-structure. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nachofassini/laravel-database-structure
More information about nachofassini/laravel-database-structure
Files in nachofassini/laravel-database-structure
Package laravel-database-structure
Short Description Package that generates a php file with the tables and fields of the database after running all the migrations
License MIT
Informations about the package laravel-database-structure
Package that generates a schema file
Install
You can pull in the package via composer:
For laravel < 5.6: the service provider must be registered:
How to generate schema file
To generate schema file just type in the console:
The file should be generated at your database path like and would look like these:
There are no conventions about this, but I think this file should be ignored.
Automatic update on migrations
If you want the file to be updated every time you change the database through any migrate command, just set AUTOMATIC_SCHEMA_FILE=true
in your .env file.
This will make that after executing any kind of migration command, the schema file gets up to date with the final database structure.
Contributing
I think this can be much more useful, any collaboration is appreciated.
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-database-structure with dependencies
illuminate/console Version ~5.5|~5.6
illuminate/contracts Version ~5.5|~5.6
illuminate/support Version ~5.5|~5.6
thedevsaddam/laravel-schema Version ^2.0