Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-storage-migrator maintained by diego-drese

Description
Laravel package to migrate files between storages preserving paths
Last update
2026/01/22 14:45 (dev-main)
License
Links
Downloads
0

Comments
comments powered by Disqus

Laravel Storage Migrator

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