laravel:config-env-storage

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

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-config-env-storage-sivanwol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel:config-env-storage
Source: https://github.com/Sivanwol/sabo-platfom/tree/main/.agents/skills/laravel-config-env-storage
Command: npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-config-env-storage-sivanwol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Portable storage configuration across S3/R2/MinIO can be toggled via environment variables to switch providers and endpoints, enabling consistent behavior across backends.

Core Features & Use Cases

  • Switchable storage backends via env vars (S3, R2, MinIO) with optional CDN integration
  • URL generation support through MEDIA_CDN_URL and provider-specific endpoints
  • Path-style endpoint control via AWS_USE_PATH_STYLE_ENDPOINT when required

Quick Start

Set environment variables to select the provider and enable CDN/url generation, then reference these settings in your storage configuration.

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 configure Laravel storage to switch between S3 and MinIO?

You can configure Laravel storage to switch between S3 and MinIO using environment variables like AWS_ENDPOINT. This provider-agnostic approach enforces consistent behavior across switchable storage backends without changing application code.

How do I enable CDN URL generation for R2 storage in Laravel?

Enable CDN URL generation for R2 storage by setting the MEDIA_CDN_URL environment variable. This configures your application to generate public access URLs routed through your CDN instead of the direct provider endpoint.

What environment variables are needed for portable cloud storage across S3 and R2?

Portable cloud storage across S3 and R2 requires environment variables like AWS_ENDPOINT and MEDIA_CDN_URL. Toggling AWS_USE_PATH_STYLE_ENDPOINT is also required when using providers like MinIO that need path-style endpoint control.

When do I need to use path-style endpoints for S3 compatible storage?

You need path-style endpoints for S3 compatible storage like MinIO by enabling the AWS_USE_PATH_STYLE_ENDPOINT environment variable. This is required when the provider demands path-style routing instead of virtual-hosted style addressing.

Can I use the same Laravel storage configuration for local MinIO and production R2?

Yes, you can use the same Laravel storage configuration for local MinIO and production R2. By relying on environment variables, the configuration remains provider-agnostic and allows consistent behavior across different deployment backends.