2017 © Pedro PelĂĄez
 

library tenant-migrate-laravel

Copy of A2Way Laravel Tenant Migrate

image

quicktech/tenant-migrate-laravel

Copy of A2Way Laravel Tenant Migrate

  • Wednesday, February 24, 2016
  • by marcelorl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 10 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

A2Way Laravel Tenant Migrate

A2Way Laravel Tenant Migrate is a Laravel package that can be used to migrate different databases without editing database configuration files., (*1)

This is specially useful for SaaS (Software as a Service) web applications that stores data of each tenant in different databases. Migrating databases like that can be very hard because you might have to change your database configuration for each tenant database. As you can imagine, this is not a very scalable solution., (*2)

A2Way Laravel Tenant Migrate can help you overcome this problem., (*3)

Commands Available

Installing A2Way Laravel Tenant Migrate on your Laravel project will add following commands to your artisan tool., (*4)

  • migrate:tenant (connection-name) (database-name)
  • migrate:tenant:install (connection-name) (database-name)
  • migrate:tenant:refresh (connection-name) (database-name)
  • migrate:tenant:reset (connection-name) (database-name)
  • migrate:tenant:rollback (connection-name) (database-name)

Each of above commands will perform the task of their cousin commands that has the similar name but for “tenant”. For an example, migrate:tenant:refresh myConnection myDatabase will run migrate:refresh on myDatabase, accessing it through connection details given in myConnection., (*5)

An example of usage through a controller is:, (*6)

Artisan::call('migrate:tenant', [
    'connection-name' => 'mysql',
    'database-name'     => 'test',
    '--path' => 'database/migrations/tenant'
]);

Installing

  1. Issue the following command:, (*7)

    composer require a2way/laravel-tenant-migrate 1.*, (*8)

  2. Then add the following line to your Laravel app’s “app/config/app.php” file’s “providers” sub-array., (*9)

    A2way\LaravelTenantMigrate\LaravelTenantMigrateServiceProvider, (*10)

  3. Check the installation by issuing "php artisan command". If you are able to see the above commands in your list of commands, installation was successful., (*11)

Contributing

Please read http://a2way.com/contributing/ before contributing., (*12)

The Versions

24/02 2016

dev-master

9999999-dev

Copy of A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

 

by Supun Budhajeewa

laravel a2way

24/02 2016

1.2.3

1.2.3.0

Copy of A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

 

by Supun Budhajeewa

laravel a2way

09/05 2015

dev-dev

dev-dev

A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

 

by Supun Budhajeewa

laravel a2way

09/05 2015

1.2.2

1.2.2.0

A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

 

by Supun Budhajeewa

laravel a2way

23/04 2015

1.2.1

1.2.1.0

A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

 

by Supun Budhajeewa

laravel a2way

31/12 2014

1.2.0

1.2.0.0

A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

 

by Supun Budhajeewa

laravel a2way

11/12 2014

v1.1.1

1.1.1.0

A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

  • php >=5.4.0

 

by Supun Budhajeewa

laravel a2way

22/11 2014

v1.1.0

1.1.0.0

A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

  • php >=5.4.0

 

by Supun Budhajeewa

laravel a2way

08/11 2014

v1.0.0

1.0.0.0

A2Way Laravel Tenant Migrate

  Sources   Download

The Requires

  • php >=5.4.0

 

by Supun Budhajeewa

laravel a2way