131 STUDIOS
Home / Blog / A Package to Migrate Assets to AWS S3
Laravel ·AWS

A Package to Migrate Assets to AWS S3

Migrate your assets from local storage to Amazon S3 to reduce bandwidth and storage costs.

R
Robert Fountain
Founder · 131 Studios
Published
Jul 7, 2025
Read time
1 min

Today we released the Laravel S3 Migrate Package. This package will migrate anything on your local Laravel project storage to Amazon S3. Check out the package on Github

Installation

Install with composer

composer require onethirtyone/laravel-s3-migrate

Publish the config

php artisan vendor:publish --tag=s3migrate-config

Usage

In config/s3migrate.php set your S3 bucket name and local disks for migrating. Run the artisan command

php artisan onethirtyone:s3-migrate

This will migrate all files in your selected local disks to S3. When the migration is complete a `OneThirtyOne\S3Migration\Events\S3MigrationCompleted` event will be fired. The event will receive a collection of `Illuminate\Support\File` files. These are the files that have been migrated. You should listen for this event to perform actions locally such as updating a database table with the new S3 image path or delete the local storage files.

Need help with your next project? We'd love to hear from you.

Need help with your next project?

We build custom websites and applications for businesses ready to grow online.

Book a free consult