Skip to content

zenia9012/laravel-migration-vise-versa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Package for Laravel. This package add possibility create migration and model from existing table

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages