Agent skill
laravel-config-env-storage
Portable storage configuration across S3/R2/MinIO with optional CDN—env toggles, path-style endpoints, and URL generation
Install this agent skill to your Project
npx add-skill https://github.com/noartem/skills/tree/main/skills/laravel-config-env-storage
SKILL.md
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
laravel-transactions-and-consistency
Wrap multi-write operations in transactions; use dispatchAfterCommit and idempotency patterns to ensure consistency
laravel-filesystem-uploads
Store and serve files via Storage; set visibility, generate URLs, and handle streaming safely
laravel-task-scheduling
Schedule tasks with safety; use withoutOverlapping, onOneServer, and visibility settings for reliable cron execution
laravel-dependencies-trim-packages
Remove unneeded Composer packages and assets to improve boot time, memory, and security surface
laravel-controller-tests
Write focused controller tests using HTTP assertions; keep heavy logic in Actions/Services and unit test them
laravel-strategy-pattern
Use the Strategy pattern to select behavior at runtime; bind multiple implementations to a shared interface
Didn't find tool you were looking for?