medialibrary-development

Implements file uploads, media collections, and image conversions for Laravel Eloquent models.

Updated May 26, 2026
One-click install
npx skills add https://github.com/rmethodm/resumegen --skill medialibrary-development-rmethodm
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: medialibrary-development
Source: https://github.com/rmethodm/resumegen/tree/main/.agents/skills/medialibrary-development
Command: npx skills add https://github.com/rmethodm/resumegen --skill medialibrary-development-rmethodm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires spatie/laravel-medialibrary, spatie/image, and includes references (resource) components.

What problem does it solve? Attaching and managing files on Eloquent models involves repetitive boilerplate for uploads, image resizing, responsive variants, and URL generation. This Skill provides the patterns and reference material to implement spatie/laravel-medialibrary correctly without digging through full documentation. ## Core Features & Use Cases - Model Media Setup: Configure models with HasMedia, InteractsWithMedia, media collections, and conversion definitions. - File Ingestion: Add media from uploads, URLs, strings, base64, streams, or existing disks with custom properties and responsive images. - Retrieval & Delivery: Generate URLs, paths, temporary S3 URLs, srcset markup, and ZIP downloads of collections. - Use Case: A user asks to add avatar uploads to a User model with a 300x300 thumbnail and a fallback image; the Skill supplies the collection, conversion, and retrieval code. ## Quick Start Add an avatar media collection with a thumbnail conversion to my User model using spatie/laravel-medialibrary.

Frequently Asked Questions about medialibrary-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I not use laravel-medialibrary?▼

It is designed for files associated with Eloquent models in Laravel. For general file storage without model association, or for non-Laravel frameworks, use plain Laravel Storage or another solution instead.