PHPackages                             mintellity/dbchanger - 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. mintellity/dbchanger

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

mintellity/dbchanger
====================

Change your database with request headers.

0.1.1(9y ago)032MITPHPPHP &gt;=5.4.0

Since Aug 22Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mintellity/dbchanger)[ Packagist](https://packagist.org/packages/mintellity/dbchanger)[ RSS](/packages/mintellity-dbchanger/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

dbchanger
=========

[](#dbchanger)

Change your database with request header. Laravel 5.

### Installation

[](#installation)

Require package in your composer.json:

```
"mintellity/dbchanger" : "dev-master"
```

Publish config file:

```
php artisan vendor:publish --provider="Mintellity\DbChanger\DbChangerServiceProvider"
```

Make sure the right user is set in the dbchanger.php config file. Your config should look like this:

```
