Download the PHP package polygontech/data-migration-laravel without Composer
On this page you can find all versions of the php package polygontech/data-migration-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download polygontech/data-migration-laravel
More information about polygontech/data-migration-laravel
Files in polygontech/data-migration-laravel
Package data-migration-laravel
Short Description Migration utility for creating or changing data in production
License MIT
Homepage https://github.com/ShafiqIslam/data-migration-laravel
Informations about the package data-migration-laravel
polygontech/data-migration-laravel
Migration utility for creating or changing data in production
polygontech/data-migration-laravel is mainly used in laravel projects at polygontech to keep track of production data change request and also as initial seeders.
Installation
The preferred method of installation is via Composer. Run the following
command to install the package and add it as a requirement to your project's
composer.json
:
then, publish the needed config:
then, run migration to create the migration table:
Usage
Data migration is a migration like utility. Like migration, it provides some commands named make:data-migration
and data-migrate
. Currently, no rollback is supported.
First, create a data-migration:
A migration file will be created in database/data-migrations
directory. database/data-migrations
directory is set to default. It can be changed from config/data_migrations.php
file.
Write the necessary data manipulation logics in the handle
method of the newly created file. You can inject any dependencies in the __construct
method of the migration class, they will be automatically resoluted.
Then, run created migrations:
Contributing
Contributions are welcome! To contribute, please familiarize yourself with CONTRIBUTING.md.
Copyright and License
The polygontech/nagad-disbursement library is copyright © Shafiqul Islam, Polygon Technology and licensed for use under the MIT License (MIT). Please see LICENSE for more information.