yevhenii / laravel-migration-vise-versa
Package for Laravel. This package adds possibility to create migration and model from an existing table
dev-master
2019-09-07 09:54 UTC
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~7.0
- sempro/phpunit-pretty-print: ^1.0
This package is auto-updated.
Last update: 2024-11-07 21:40:22 UTC
README
![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.