2017 © Pedro Peláez
 

library laravel-module-migrations

Adds functionality for running migrations from other modules.

image

joshbrw/laravel-module-migrations

Adds functionality for running migrations from other modules.

  • Thursday, June 28, 2018
  • by joshbrw
  • Repository
  • 1 Watchers
  • 0 Stars
  • 654 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 25 % Grown

The README.md

Laravel Module Migrations

Provides a Trait that can be used on migrations with Laravel Modules to ensure that a table from another Module exists. This solves any cross-module table dependency issues., (*1)

Installation

  1. Publish the config to config/module-migrations.php by running:, (*2)

    php artisan vendor:publish --provider="Joshbrw\LaravelModuleMigrations\LaravelModuleMigrationsServiceProvider", (*3)

  2. Write your table definitions within this config file. This config file should define the tables that can be created, the module that their migrations exist in and any migrations that should be ran to create this table.
  3. In any migrations that require tables created in other modules, use Joshbrw\LaravelModuleMigrations\Traits\ModuleMigrator.
  4. Use $this->ensureTableExists('tableName'); wherever you want the tables to be created.

The Versions

28/06 2018

dev-master

9999999-dev

Adds functionality for running migrations from other modules.

  Sources   Download

MIT

The Requires

 

by Josh Brown

28/06 2018

v1.2

1.2.0.0

Adds functionality for running migrations from other modules.

  Sources   Download

MIT

The Requires

 

by Josh Brown

28/06 2018

v1.1

1.1.0.0

Adds functionality for running migrations from other modules.

  Sources   Download

MIT

The Requires

 

by Josh Brown

27/10 2017

v1.0

1.0.0.0

Adds functionality for running migrations from other modules.

  Sources   Download

MIT

The Requires

 

by Josh Brown

15/03 2017

v0.1.2

0.1.2.0

Adds functionality for running migrations from other modules.

  Sources   Download

MIT

The Requires

 

by Josh Brown

15/03 2017

v0.1.1

0.1.1.0

Adds functionality for running migrations from other modules.

  Sources   Download

MIT

The Requires

 

by Josh Brown

15/03 2017

v0.1.0

0.1.0.0

Adds functionality for running migrations from other modules.

  Sources   Download

MIT

The Requires

 

by Josh Brown