medialibrary-development
OfficialLink files to models with media workflows.
Authortrypostit
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Media attachment and organization in Laravel apps often requires manual setup and repetitive boilerplate. Spatie's Laravel Medialibrary enables attaching files to Eloquent models, defining collections, handling conversions, and generating URLs with minimal code.
Core Features & Use Cases
- Model Setup and Attachment: implement HasMedia, register media collections, and attach files with addMedia and related methods.
- Media Conversions & Responsive Images: define conversions and serve responsive images across storages.
- Retrieval & URLs: obtain URLs, paths, and placeholders for media, enabling easy rendering in views and APIs.
- Use Case: attach product images, generate thumbnails, and display responsive assets in a storefront.
Quick Start
Upload a file to a model using addMedia and fetch its URL with getFirstMediaUrl.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: medialibrary-development Download link: https://github.com/trypostit/trypost/archive/main.zip#medialibrary-development Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.