library laravel-module-migrations
Adds functionality for running migrations from other modules.
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
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
-
Publish the config to config/module-migrations.php
by running:, (*2)
php artisan vendor:publish --provider="Joshbrw\LaravelModuleMigrations\LaravelModuleMigrationsServiceProvider"
, (*3)
- 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.
- In any migrations that require tables created in other modules,
use Joshbrw\LaravelModuleMigrations\Traits\ModuleMigrator
.
- Use
$this->ensureTableExists('tableName');
wherever you want the tables to be created.
dev-master
9999999-dev
Adds functionality for running migrations from other modules.
Sources
Download
MIT
The Requires
by
Josh Brown
v1.2
1.2.0.0
Adds functionality for running migrations from other modules.
Sources
Download
MIT
The Requires
by
Josh Brown
v1.1
1.1.0.0
Adds functionality for running migrations from other modules.
Sources
Download
MIT
The Requires
by
Josh Brown
v1.0
1.0.0.0
Adds functionality for running migrations from other modules.
Sources
Download
MIT
The Requires
by
Josh Brown
v0.1.2
0.1.2.0
Adds functionality for running migrations from other modules.
Sources
Download
MIT
The Requires
by
Josh Brown
v0.1.1
0.1.1.0
Adds functionality for running migrations from other modules.
Sources
Download
MIT
The Requires
by
Josh Brown
v0.1.0
0.1.0.0
Adds functionality for running migrations from other modules.
Sources
Download
MIT
The Requires
by
Josh Brown