mcpField
L
laravel-config-env-storage

laravel-config-env-storage

github.com/noartemCloud & DevOps1373 installsUpdated 2w ago
Repository

About laravel-config-env-storage

laravel-config-env-storage is a storage-configuration skill for Laravel projects. It is for developers managing file storage, with environment-based provider settings, CDN URL guidance, pre-signed URL tips, and storage testing practices.

Key features

  1. 01Configure storage through environment variables
  2. 02Set an optional CDN base URL
  3. 03Get guidance on pre-signed URLs
  4. 04Fake storage in unit tests with Storage::fake
  5. 05Verify URL formats and ACLs

Use cases

  1. 01Configure S3, R2, or MinIO storage for a project
  2. 02Prefix public media URLs with a CDN URL
  3. 03Test storage URL formats and ACLs

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/noartem/skills --skill laravel-config-env-storage

After installing, type/laravel-config-env-storagein Claude Code to confirm it loaded.

Details

From the project README

Storage Config (S3/R2/MinIO/CDN)

Configure storage once; switch providers via env.

Env

FILESYSTEM_DISK=s3
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AWS_DEFAULT_REGION=auto
AWS_BUCKET=...
AWS_ENDPOINT=https://r2.example.com       # for R2/MinIO
AWS_USE_PATH_STYLE_ENDPOINT=true          # if required
MEDIA_CDN_URL=https://cdn.example.com     # optional CDN/base URL

Tips

  • Prefer pre‑signed URLs for uploads/downloads when possible
  • For CDN, prefix public URLs with MEDIA_CDN_URL (app URL generation helper)
  • Use path‑style only when necessary; some providers require it

Testing

  • Fake storage in unit tests (Storage::fake('s3'))
  • Integration tests verify URL formats and ACLs

Comments

Markdown supported