News
1 min read
Laravel Read-Through Filesystem: Lazy Storage Migration
Seamlessly migrate local storage assets to S3 cloud buckets on demand with Laravel's Read-Through Filesystem adapter.
Lazy File Migration with Read-Through Filesystem
Migrating millions of user uploads from local disks to AWS S3 or Cloudflare R2 often involves risky script deployments. Laravel's new Read-Through Filesystem driver simplifies cloud migrations by lazily transferring files on request.
'disks' => [
's3_read_through' => [
'driver' => 'read-through',
'primary' => 's3',
'fallback' => 'local',
'auto_migrate' => true,
],
],