PHPackages                             nwogu/smooth-migration - 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. nwogu/smooth-migration

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

nwogu/smooth-migration
======================

Flexible way to manage Laravel Migrations

24181PHP

Since Aug 22Pushed 6y agoCompare

[ Source](https://github.com/nwogu/smooth-migration)[ Packagist](https://packagist.org/packages/nwogu/smooth-migration)[ RSS](/packages/nwogu-smooth-migration/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Smooth Migrations
=================

[](#smooth-migrations)

A Flexible way to manage Laravel Migrations
Smooth Migration is a Laravel package that allows you abstract your schema definitions from your migration files.
This allows you to do two simple things really well.

- 1. Specify which schema to run first. Very useful for situations where you need foreign key references without
        needing to change migration file name.
- 2. Update your schema on the go. Need to drop a column? Add a new column? No need to generate migration files for that.
        Just update the existing schema definition and the package generates the necessary migration files

Smooth Migrations handles the generation of all migration files with their appropriate methods.

Installation.
-------------

[](#installation)

Install via composer:

`composer require nwogu/smooth-migration`

Schema Folder:
--------------

[](#schema-folder)

If you'd like to change the default schema directory, publish the config files with the
`php artisan vendor:publish` command

The default schema directory is in database/schemas

Usage:
------

[](#usage)

Create a schema file for your table with the command and pass it the table name:
`php artisan smooth:create product`

This will create a schema template for you to define your migrations:

```
