mcpField
L
laravel-filesystem-uploads

laravel-filesystem-uploads

github.com/noartemDevelopment1373 installsUpdated 3w ago
Repository

About laravel-filesystem-uploads

A Laravel development skill for handling file uploads and URLs through the Storage facade. It helps developers keep storage backend details abstract while applying upload validation and public-file patterns.

Key features

  1. 01Backend-independent Storage usage
  2. 02Disk-based file uploads
  3. 03Temporary URL generation
  4. 04Download file streams
  5. 05Upload type and size validation

Use cases

  1. 01Saving user avatars to a dedicated disk
  2. 02Creating time-limited links for stored files
  3. 03Serving public assets through a web server or CDN

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/noartem/skills --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