laravel-config-env-storage

Configure S3, R2, and MinIO storage via environment variables with CDN support.

Updated Jun 8, 2025
One-click install
npx skills add https://github.com/noartem/kawa --skill laravel-config-env-storage-noartem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel-config-env-storage
Source: https://github.com/noartem/kawa/tree/main/ui/.ai/skills/laravel-config-env-storage
Command: npx skills add https://github.com/noartem/kawa --skill laravel-config-env-storage-noartem

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Portable storage configuration across S3/R2/MinIO with optional CDN—env toggles, path-style endpoints, and URL generation

Core Features & Use Cases

  • Unified configuration across multiple storage backends (S3, R2, MinIO) with optional CDN URL generation
  • Env-driven provider switching using FILESYSTEM_DISK, AWS_ENDPOINT, and related vars
  • Simple testing and validation of URL formats and ACLs

Quick Start

Set FILESYSTEM_DISK and related env vars, then run a quick test to verify URL generation

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 between S3, R2, and MinIO storage in Laravel without changing code?

Configure multiple storage backends in Laravel by using environment variables like FILESYSTEM_DISK and AWS_ENDPOINT. This env-driven approach allows seamless provider switching across S3, R2, and MinIO during deployment without code changes.

What's the best way to configure path-style endpoints for MinIO in Laravel?

Configure path-style endpoints for MinIO by toggling the appropriate environment variables. This ensures compatibility with self-hosted storage backends that require path-style URL construction instead of virtual-hosted styles.

Can I generate CDN URLs for S3 or R2 storage in Laravel?

Yes, you can generate CDN URLs for S3 or R2 storage by enabling optional CDN support in the configuration. This validates URL formats and constructs accessible public links through your CDN endpoint.

How do I validate storage URLs and ACLs when switching disks in Laravel?

Validate storage URLs and ACLs by running a quick test after setting FILESYSTEM_DISK and related environment variables. This verifies that URL generation and access controls are correctly configured for the selected provider.

Does this storage configuration approach work for deployment pipelines?

Yes, this configuration approach works for deployment pipelines by applying environment-driven provider selection. It satisfies requirements for seamless provider switching via environment variables across development and deployment workflows.