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
- 01Store uploads through Storage
- 02Generate temporary URLs
- 03Stream files for download
- 04Set disk visibility explicitly
- 05Validate upload types and size
Use cases
- 01Save user avatar uploads
- 02Create temporary links for stored files
- 03Download backups as streams
- 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-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