定制 diego-drese/laravel-storage-migrator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-22