diego-drese/laravel-storage-migrator
Composer 安装命令:
composer require diego-drese/laravel-storage-migrator
包简介
Laravel package to migrate files between storages preserving paths
README 文档
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
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-22