Skip to content

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

License

Notifications You must be signed in to change notification settings

Hanan467/SyncMigrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages