PHPackages                             stechstudio/laravel-locking-migrations - 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. stechstudio/laravel-locking-migrations

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

stechstudio/laravel-locking-migrations
======================================

Ensure only one server runs migrations at a time

0.1(6y ago)06MITPHPCI failing

Since Dec 19Pushed 6y ago2 watchersCompare

[ Source](https://github.com/stechstudio/laravel-locking-migrations)[ Packagist](https://packagist.org/packages/stechstudio/laravel-locking-migrations)[ Docs](https://github.com/stechstudio/laravel-locking-migrations)[ RSS](/packages/stechstudio-laravel-locking-migrations/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

Locking migrations for Laravel
==============================

[](#locking-migrations-for-laravel)

If your app deployment process deploys to multiple instances at the same time, and each of those attempts to run migrations, you can run into problems.

This package adds a `--lock` option to the `php artisan migrate` command, which will ensure only one server runs migrations at a time.

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

[](#installation)

Via Composer

```
$ composer require stechstudio/laravel-locking-migrations
```

Usage
-----

[](#usage)

In your composer.json `post-install-cmd` hook (or wherever you are running migrations during deploy) simply add the `--lock` option.

```
php artisan migrate --lock
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

2334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/315be5f111b5501a41b99a0205c9c85915335391168a0ed10316546a1a38bbd8?d=identicon)[jszobody](/maintainers/jszobody)

---

Top Contributors

[![jszobody](https://avatars.githubusercontent.com/u/203749?v=4)](https://github.com/jszobody "jszobody (2 commits)")

---

Tags

laravellaravel-locking-migrations

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stechstudio-laravel-locking-migrations/health.svg)

```
[![Health](https://phpackages.com/badges/stechstudio-laravel-locking-migrations/health.svg)](https://phpackages.com/packages/stechstudio-laravel-locking-migrations)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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