diego-drese / laravel-storage-migrator
Laravel package to migrate files between storages preserving paths
Package info
github.com/diego-drese/laravel-storage-migrator
pkg:composer/diego-drese/laravel-storage-migrator
dev-main
2026-01-22 13:45 UTC
Requires
- php: ^8.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
This package is auto-updated.
Last update: 2026-02-22 14:06:49 UTC
README
A Laravel package to migrate files between storage disks preserving paths.
🚀 Features
- Migrate files between any Laravel disks
- Preserve original file paths
- Optional overwrite existing files
- Dry-run mode
- Works with S3, Spaces, MinIO, FTP, Local, etc.
📦 Installation
composer require deployfy/laravel-storage-migrator
📘 Publish config
php artisan vendor:publish --tag=storage-migrator-config
⚙️ Configuration .env
STORAGE_MIGRATOR_FROM=old_storage STORAGE_MIGRATOR_TO=new_storage
▶️ Usage Basic migration
php artisan storage:migrate old_storage new_storage
▶️ Using config defaults
php artisan storage:migrate
▶️ Using Migrate a specific path
php artisan storage:migrate --path=tickets/2024
▶️ Using Replace existing files
php artisan storage:migrate --replace
▶️ Using Dry run
php artisan storage:migrate --dry-run