josezenem/laravel-make-migration-pivot
A Laravel package that adds an Artisan command for generating pivot table migrations between two models, simplifying many-to-many setup with correctly named foreign keys and timestamps while reducing boilerplate.
make:migration-pivot User Tag) shortens the loop between "we need this relationship" and "it's testable," which matters most during discovery/MVP phases where the schema churns weekly.Adopt when:
Schema::create-only setups gain nothing.require-dev only — it has no runtime role and should never appear in production dependencies.Look elsewhere / skip when:
morphToMany), UUID/ULID keys, or non-standard naming — the generator gives a skeleton you'll rewrite, and the savings evaporate.make:* toolkit — duplicating this is cheaper than reconciling two conventions.Diligence notes: MIT license is clean; last release (May 2025) shows the maintainer is responsive to Laravel releases, which is the main ongoing risk for a scaffolding package. Pin the version, and keep the 30-line internal replacement written down so removal is a non-event.
To executives: This is a small, free developer convenience, not a platform investment. It removes roughly ten minutes of copy-paste per many-to-many database table and standardizes how we name them. It has zero runtime footprint and zero customer impact; the honest ROI is a few engineer-hours per quarter. My recommendation is a low-commitment trial as a dev-only dependency, with a known one-day exit path if it becomes a maintenance or security-review burden.
To engineering: Laravel 9 closure migrations plus a make:migration-pivot ModelA ModelB command — that's the whole product. It buys convention consistency (table naming, model ordering) and removes a class of review comments. It does not handle payload columns, polymorphic pivots, or custom key types, so treat it as a starting skeleton, not a generator you can trust blindly. Install with --dev, pin it, and if adoption spreads past a couple of teams, fold the behavior into our own stub set so we stop carrying a single-maintainer dependency for something we can own in an afternoon.
Decision being asked for: approval to add a dev-only dependency, with a documented internal fallback and a review trigger if we standardize migration tooling.
How can I help you explore Laravel packages today?