mcpField
L
laravel:filesystem-uploads

laravel:filesystem-uploads

github.com/jpcaparasDevelopment157128 installsUpdated 18w ago
Repository

About laravel:filesystem-uploads

A Laravel skill for handling file uploads and URLs through the Storage facade, abstracting storage backends such as local disks and S3. It is intended for developers building upload and download flows.

Key features

  1. 01Store uploads through Storage
  2. 02Generate temporary URLs
  3. 03Stream files for download
  4. 04Set disk visibility explicitly
  5. 05Validate upload types and size

Use cases

  1. 01Save user avatar uploads
  2. 02Create temporary links for stored files
  3. 03Download backups as streams
  4. 04Serve public assets through a linked storage path

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/jpcaparas/superpowers-laravel --skill laravel:filesystem-uploads

After installing, type/laravel:filesystem-uploadsin Claude Code to confirm it loaded.

Details

From the project README

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

Comments

Markdown supported