laravel:filesystem-uploads

Filesystem Uploads and URLs

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel:filesystem-uploads" with this command: npx skills add jpcaparas/superpowers-laravel/jpcaparas-superpowers-laravel-laravel-filesystem-uploads

Filesystem Uploads and URLs

Use the Storage facade consistently; abstract away the backend (local, S3, etc.).

Commands

$path = Storage::disk('public')->putFile('avatars', $request->file('avatar'));

// Temporary URLs (S3, etc.) $url = Storage::disk('s3')->temporaryUrl($path, now()->addMinutes(10));

// Streams return Storage::disk('backups')->download('db.sql.gz');

Patterns

  • Keep user uploads under a dedicated disk with explicit visibility

  • Avoid assuming local paths; always go through Storage

  • For public assets, run storage:link and serve via web server / CDN

  • Validate mime/types and size limits at upload boundaries

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel:routes-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:blade-components-and-layouts

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:queues-and-horizon

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:quality-checks

No summary provided by upstream source.

Repository SourceNeeds Review