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

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

bmstanley/laravel-nomad
=======================

Add extra functionality to Laravel migrations.

v2.0.1(6y ago)0173MITPHPPHP &gt;=7.0.0

Since Jan 15Pushed 6y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (8)Versions (8)Used By (0)

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

[](#laravel-nomad)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b611bfe4e814add7f4162bc3929be60dffa65f14247298b6d2d5e49987765d5b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626d7374616e6c65792f6c61726176656c2d6e6f6d61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bmstanley/laravel-nomad)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)[![Total Downloads](https://camo.githubusercontent.com/d7a1a09b6b025225918fe0390f2343738e822f829b2f59b9bbdd2387f1574799/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626d7374616e6c65792f6c61726176656c2d6e6f6d61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bmstanley/laravel-nomad)

This Laravel 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)

5.5

Install
-------

[](#install)

Via Composer

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

For Laravel 5.5 and newer, no configuration is needed. The package will be auto-discovered.

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');
    }
}
```

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)
- [Brian Stanley](https://github.com/bmstanley)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 78.3% 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 ~350 days

Total

5

Last Release

2370d ago

Major Versions

1.0.x-dev → 2.0.02019-11-15

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

2.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8882580?v=4)[Brian Stanley](/maintainers/bmstanley)[@bmstanley](https://github.com/bmstanley)

---

Top Contributors

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

---

Tags

laravelmigrationcustom

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[shiftonelabs/laravel-nomad

Add extra functionality to Laravel migrations.

20100.8k](/packages/shiftonelabs-laravel-nomad)[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)[fisharebest/laravel-floats

Floating point support for Laravel migrations

1111.4k](/packages/fisharebest-laravel-floats)[khalyomede/laravel-seed

Run your seeds like you run your migrations.

1013.0k](/packages/khalyomede-laravel-seed)

PHPackages © 2026

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