PHPackages                             patrickquijano/laravel-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. patrickquijano/laravel-migration

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

patrickquijano/laravel-migration
================================

This Laravel package provides extended functionalities by overriding core Laravel migration classes.

v1.0.2(1y ago)010[1 PRs](https://github.com/patrickquijano/laravel-migration/pulls)MITPHPPHP ^8.3

Since Jun 13Pushed 1y ago1 watchersCompare

[ Source](https://github.com/patrickquijano/laravel-migration)[ Packagist](https://packagist.org/packages/patrickquijano/laravel-migration)[ RSS](/packages/patrickquijano-laravel-migration/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

Laravel Migration
=================

[](#laravel-migration)

This Laravel package provides enhanced functionality for managing database migrations. It extends the core `Blueprint` class and `Schema` facade to streamline your migration experience.

Features
--------

[](#features)

- **Standardized Time Precision:** Ensures all time-related database types (like `datetime` and `timestamp`) utilize a precision of 6 by default (instead of the default 0).
- **Automatic Morph Indexing:** Automatically adds indexes to all columns created using morph relationships (`morphTo`, `morphMany`, etc.) for improved performance in queries.

Installation
------------

[](#installation)

```
composer require patrickquijano/laravel-migration
```

Usage
-----

[](#usage)

To leverage this package in your existing migrations, simply rename the following classes:

1. Replace `Illuminate\Database\Schema\Blueprint` with `LaravelMigration\Database\Schema\Blueprint`
2. Replace `Illuminate\Support\Facades\Schema` with `LaravelMigration\Support\Facades\Schema`

**Example (Before):**

```
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

public function up()
{
    Schema::create('users', function (Blueprint $table) {
        $table->id();
        $table->string('name');
        $table->timestamp('email_verified_at')->nullable();
        // ...
    });
}
```

**Example (After):**

```
use LaravelMigration\Database\Schema\Blueprint;
use LaravelMigration\Support\Facades\Schema;

public function up()
{
    Schema::create('users', function (Blueprint $table) {
        $table->id();
        $table->string('name');
        $table->timestamp('email_verified_at')->nullable();
        // ...
    });
}
```

Publish Stub Files (Optional)
-----------------------------

[](#publish-stub-files-optional)

For convenience, you can publish stub files with the updated imports for your future migrations:

```
php artisan vendor:publish --tag=laravel-migration-stubs
```

This will create new stub files within your `stubs` directory, reflecting the package's classes.

Benefits
--------

[](#benefits)

- Improved Code Consistency: Enforces a standardized time precision for temporal database types.
- Enhanced Performance: Automatic indexing on morph relationships leads to faster queries.
- Streamlined Development: Stub file publishing simplifies migration creation with pre-configured imports.

We encourage you to utilize this package to streamline your Laravel migration development and ensure optimal database performance.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~33 days

Total

3

Last Release

629d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1af4abf292fcb465669fdd6490ced2fed5d8f316dd6b5c161548c0b382b1eb09?d=identicon)[patrickquijano](/maintainers/patrickquijano)

---

Top Contributors

[![patrickquijano](https://avatars.githubusercontent.com/u/6316829?v=4)](https://github.com/patrickquijano "patrickquijano (11 commits)")

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/patrickquijano-laravel-migration/health.svg)

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

###  Alternatives

[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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