laravel-migration-vise-versa maintained by yevhenii
Description
Package for Laravel. This package adds possibility to create migration and model from an existing table
Author
Last update
2019/09/07 11:54
(dev-master)
License
Downloads
10
Tags
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.