PHPackages                             shiftonelabs/laravel-nomad - 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. shiftonelabs/laravel-nomad

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

shiftonelabs/laravel-nomad
==========================

Add extra functionality to Laravel migrations.

2.0.0(6y ago)20100.8k↓29.6%1[2 issues](https://github.com/shiftonelabs/laravel-nomad/issues)MITPHPPHP &gt;=5.4.0CI failing

Since Jan 15Pushed 6y ago3 watchersCompare

[ Source](https://github.com/shiftonelabs/laravel-nomad)[ Packagist](https://packagist.org/packages/shiftonelabs/laravel-nomad)[ Docs](https://github.com/shiftonelabs/laravel-nomad)[ RSS](/packages/shiftonelabs-laravel-nomad/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (6)Used By (0)

laravel-nomad
=============

[](#laravel-nomad)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d0a4c94f248a1c7f04f89691b5283ea6d6924c565942329eb256b8c0148fd6b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686966746f6e656c6162732f6c61726176656c2d6e6f6d61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shiftonelabs/laravel-nomad)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)[![Build Status](https://camo.githubusercontent.com/3590cd1d387db0ed8d84689854739ed793cd31e9d33496a7b3f2f00f3c3dbfe5/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73686966746f6e656c6162732f6c61726176656c2d6e6f6d61642f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/shiftonelabs/laravel-nomad)[![Coverage Status](https://camo.githubusercontent.com/08ea7a614c5716dfce17b2af5e0145667def82c7eec3a9e025fcda8f0452bbdf/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73686966746f6e656c6162732f6c61726176656c2d6e6f6d61642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/shiftonelabs/laravel-nomad/code-structure)[![Quality Score](https://camo.githubusercontent.com/19b124b82cd237c30eeee71f063aa52d9282a21375983a783eca40a7b384b091/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73686966746f6e656c6162732f6c61726176656c2d6e6f6d61642e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/shiftonelabs/laravel-nomad)[![Total Downloads](https://camo.githubusercontent.com/043adc806535a35abc95624af916c3473c9a8a8baa3f595f8f94716664d8f9d4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73686966746f6e656c6162732f6c61726176656c2d6e6f6d61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/shiftonelabs/laravel-nomad)

This Laravel/Lumen package provides additional functionality for the Illuminate Database migrations. Currently the only additional functionality is the ability to specify custom database field types, but new functionality can be added as requested/submitted.

Supported Versions
------------------

[](#supported-versions)

4.1, 4.2, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.x

This package has been tested on Laravel 4.1 through Laravel 6.x, though it may continue to work on later versions as they are released. This section will be updated to reflect the versions on which the package has actually been tested.

Install
-------

[](#install)

Via Composer

```
$ composer require shiftonelabs/laravel-nomad
```

Once composer has been updated and the package has been installed, the service provider will need to be loaded.

#### Laravel 5.5+, 6.x (5.5, 5.6, 5.7, 5.8, 6.x)

[](#laravel-55-6x-55-56-57-58-6x)

This package uses auto package discovery. The service provider will automatically be registered.

#### Laravel 5.0 - 5.4 (5.0, 5.1, 5.2, 5.3, 5.4)

[](#laravel-50---54-50-51-52-53-54)

For Laravel 5.0 - 5.4, open `config/app.php` and add the following line to the providers array:

```
ShiftOneLabs\LaravelNomad\LaravelNomadServiceProvider::class,
```

#### Laravel 4 (4.1, 4.2)

[](#laravel-4-41-42)

For Laravel 4, open `app/config/app.php` and add the following line to the providers array:

```
'ShiftOneLabs\LaravelNomad\LaravelNomadServiceProvider',
```

#### Lumen 5.0+, 6.x (5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 6.x)

[](#lumen-50-6x-50-51-52-53-54-55-56-57-58-6x)

For Lumen 5.0+, 6.x, open `bootstrap/app.php` and add the following line under the "Register Service Providers" section:

```
$app->register(ShiftOneLabs\LaravelNomad\LaravelNomadServiceProvider::class);
```

Usage
-----

[](#usage)

#### Custom Field Types

[](#custom-field-types)

Laravel's migrations provide methods for a wide base of the standard field types used in the supported databases, however it is not an exhaustive list. Additionally, some databases have extensions that can be enabled that add new field types. Unfortunately, one cannot create fields with these new data types using built-in migration methods.

As an example, PostgreSQL has a "citext" module to allow easy case-insensitive matching. This module adds a new "citext" field data type for storing case-insensitive string data. The built-in migration methods do not have a way to create a "citext" field, so one would have to add a direct "ALTER" statement to run after the table is created.

This package adds a new `passthru` method to allow defining custom data types in the migration. The `passthru` method can be used to add a field with any data type, as the specified type is merely passed through to the schema grammar.

The `passthru` method requires two parameters: the data type and the field name. An optional third parameter can be used to specify the actual data type definition, if needed. The `definition` method can also be chained on to specify the actual data type definition. A usage example is shown below:

```
class CreateUsersTable extends Migration {
    public function up()
    {
        Schema::create('users', function(Blueprint $table)
        {
            $table->increments('id');
            $table->passthru('citext', 'name');
            $table->passthru('citext', 'title')->nullable();
            $table->passthru('string', 'email', 'varchar(255)')->unique();
            $table->passthru('string', 'password')->definition('varchar(60)');
            $table->rememberToken();
            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::drop('users');
    }
}
```

Changelog
---------

[](#changelog)

This package maintains a changelog. Please see [CHANGELOG](CHANGELOG.md) for details.

Contributing
------------

[](#contributing)

Contributions are very welcome. Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Patrick Carlo-Hickman](https://github.com/patrickcarlohickman)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.txt) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 90.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~487 days

Total

4

Last Release

2315d ago

Major Versions

1.0.x-dev → 2.0.02020-01-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/359fc390650d98265cef526a899c6bc79cd9030e32d17a472af34f38ed70fb2c?d=identicon)[patrickcarlohickman](/maintainers/patrickcarlohickman)

---

Top Contributors

[![patrickcarlohickman](https://avatars.githubusercontent.com/u/6036266?v=4)](https://github.com/patrickcarlohickman "patrickcarlohickman (29 commits)")[![SebastianS90](https://avatars.githubusercontent.com/u/7740744?v=4)](https://github.com/SebastianS90 "SebastianS90 (3 commits)")

---

Tags

laravelmigrationlumencustom

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/shiftonelabs-laravel-nomad/health.svg)

```
[![Health](https://phpackages.com/badges/shiftonelabs-laravel-nomad/health.svg)](https://phpackages.com/packages/shiftonelabs-laravel-nomad)
```

###  Alternatives

[kitloong/laravel-migrations-generator

Generates Laravel Migrations from an existing database

2.9k7.4M24](/packages/kitloong-laravel-migrations-generator)[dragon-code/laravel-data-dumper

Adding data from certain tables when executing the `php artisan schema:dump` console command

3418.6k](/packages/dragon-code-laravel-data-dumper)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
