laravel:config-env-storage

Configure S3, R2, and MinIO storage via Laravel environment variables.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2 --skill laravel-config-env-storage-patkik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel:config-env-storage
Source: https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2/tree/main/.agents/skills/config-env-storage
Command: npx skills add https://github.com/Patkik/Multi-tenant-SaaS-Catering-V2 --skill laravel-config-env-storage-patkik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Configure portable storage across S3, R2, and MinIO using Laravel environment variables to switch providers without code changes.

Core Features & Use Cases

  • Provider-agnostic configuration for S3, R2, and MinIO with single-env toggles
  • Support for CDN URL prefixes via MEDIA_CDN_URL-like settings
  • URL generation and path-style vs virtual-hosted endpoint handling for different providers
  • Use case: Seamlessly migrate storage backends in staging to production with minimal code changes

Quick Start

Update your .env with the desired storage provider variables and verify URL generation works across S3, R2, and MinIO

Frequently Asked Questions about laravel:config-env-storage

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I switch Laravel storage between S3, R2, and MinIO without changing code?

You can switch Laravel storage providers without code changes by using environment variables to configure portable storage settings for S3, R2, and MinIO. This enables seamless provider switching across staging and production environments.

Can I use a CDN prefix for URL generation with Laravel storage?

Yes, you can apply CDN URL prefixes using environment settings like MEDIA_CDN_URL. This configures Laravel URL generation to route storage assets through a specified CDN prefix while maintaining provider-agnostic compatibility.

What is the best way to handle path-style vs virtual-hosted endpoints for S3 in Laravel?

Handling path-style versus virtual-hosted endpoints is managed through environment-driven configuration toggles. This allows you to adjust endpoint formats dynamically for compatibility with different providers like MinIO and S3.

Does Laravel environment configuration support migrating storage backends from staging to production?

Yes, Laravel environment configuration supports migrating storage backends from staging to production with minimal code changes. You simply update your environment variables to toggle between S3, R2, and MinIO providers.

How do I configure Cloudflare R2 storage in a Laravel backend?

You configure Cloudflare R2 storage in a Laravel backend by setting specific environment variables for provider switching. This approach standardizes URL generation and endpoint handling without requiring application code modifications.

Why does my MinIO storage configuration require path-style endpoints in Laravel?

MinIO storage configurations often require path-style endpoints instead of virtual-hosted endpoints for proper routing. This Skill handles the toggle between path-style and virtual-hosted formats using environment variables to ensure compatibility.