diego-drese / laravel-storage-migrator
Laravel package to migrate files between storages preserving paths
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/diego-drese/laravel-storage-migrator
Requires
- php: ^8.0
- illuminate/support: ^8.0|^9.0|^10.0|^11.0
This package is auto-updated.
Last update: 2026-01-22 13:46:48 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