PHPackages                             mwi/laravel-refactor - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mwi/laravel-refactor

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

mwi/laravel-refactor
====================

Package to help refactor data in staging and production environments.

07PHP

Since Mar 4Pushed 6y agoCompare

[ Source](https://github.com/Midwestern-Interactive/laravel-refactor)[ Packagist](https://packagist.org/packages/mwi/laravel-refactor)[ RSS](/packages/mwi-laravel-refactor/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

MWI Laravel Refactor
====================

[](#mwi-laravel-refactor)

Package to help refactor data in staging and production environments.

Installation
============

[](#installation)

```
composer require mwi/laravel-refactor
php artisan migrate
```

Service Provider
----------------

[](#service-provider)

If you're on laravel 5.5 or later the service provider will be automatically loaded and you can skip this step, if not, add to your `config/app.php` providers

```
'providers' => [
    // ...
    MWI\LaravelRefactor\ServiceProvider::class,
    // ...
],
```

Usage
=====

[](#usage)

Once you have the package setup and migrations ran

```
php artisan make:refactor convert_relationship_to_many_to_many
```

Instruct the up and down methods

```
