PHPackages                             californiamountainsnake/laravel-migrations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. californiamountainsnake/laravel-migrations

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

californiamountainsnake/laravel-migrations
==========================================

Use different Migration classes for different database connections in Laravel.

2.0.0(5y ago)040MITPHPPHP ^7.2

Since Jan 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/CaliforniaMountainSnake/laravel-migrations)[ Packagist](https://packagist.org/packages/californiamountainsnake/laravel-migrations)[ RSS](/packages/californiamountainsnake-laravel-migrations/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (0)

laravel-migrations
==================

[](#laravel-migrations)

Use different Migration classes for different database connections in Laravel. With this library you can easy specify on which database connection each migration will be executed.

Install:
--------

[](#install)

### Require this package with Composer

[](#require-this-package-with-composer)

Install this package through [Composer](https://getcomposer.org/). Edit your project's `composer.json` file to require `californiamountainsnake/laravel-migrations`:

```
{
    "name": "yourproject/yourproject",
    "type": "project",
    "require": {
        "php": "^7.2",
        "californiamountainsnake/laravel-migrations": "*"
    }
}
```

and run `composer update`

### or

[](#or)

run this command in your command line:

```
composer require californiamountainsnake/laravel-migrations
```

Usage:
------

[](#usage)

1. Create some connections in `config/database.php` file.
2. Create a Migration class for each needed connection:

```
