Skip to content

About

A Laravel package that automatically resolves migration order based on foreign key dependencies.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔄 SyncMigrate

Automatically resolves Laravel migration order based on foreign key dependencies.

This package scans your migration files, detects foreign key relationships, and runs them in the correct order using topological sorting. No need to rename or manually order your files.


✅ Features

  • Detects foreignId()->constrained() relationships
  • Sorts migrations based on dependencies
  • Runs migrations in the correct order
  • No config required – works out of the box

📦 Installation

You can install SyncMigrate via Composer directly from Packagist:

composer require hanan467/sync-migrate

Usage

php artisan migrate:sync

About

A Laravel package that automatically resolves migration order based on foreign key dependencies.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages