yevhenii/laravel-migration-vise-versa

Package for Laravel. This package adds possibility to create migration and model from an existing table

Downloads

10

Stars

0

Version

LaravelMigrationViseVersa

![Latest Version on Packagist][ico-version]

Installation

Via Composer

$ composer require yevhenii/laravel-migration-vise-versa

Usage

For creating Model from existing table use command:

$ php artisan table:model posts

Where "posts" is name of table.

Will be created :

  • model "Post" with fillable array

For creating Model and Migration from existing table use command:

$ php artisan table:model posts --m

Where "posts" is name of table.

Will be created :

  • model "Post" and migration "create_posts_table"

For creating Migration from existing table use command:

$ php artisan table:migration posts

Where "posts" is name of table.

Will be created :

  • migration file "create_posts_table"

For creating Migration and Model from existing table use command:

$ php artisan table:migration posts --m

Where "posts" is name of table.

Will be created :

  • migration file "create_posts_table" and "Post" Model

Security

If you discover any security related issues, please email author email instead of using the issue tracker.

License

license. Please see the license file for more information.

zenia9012

Author

zenia9012