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
- 01Backend-independent Storage usage
- 02Disk-based file uploads
- 03Temporary URL generation
- 04Download file streams
- 05Upload type and size validation
Use cases
- 01Saving user avatars to a dedicated disk
- 02Creating time-limited links for stored files
- 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-uploadsAfter installing, type/laravel-filesystem-uploadsin Claude Code to confirm it loaded.
Details
From the project READMEFilesystem 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:linkand serve via web server / CDN - Validate mime/types and size limits at upload boundaries
Comments
Markdown supported