spatie/laravel-medialibrary

Associate files with Eloquent models

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 25 minutes ago
Added to GitGenius on September 10th, 2026
Created on April 14th, 2015
Open Issues & Pull Requests: 1 (+0)
GitHub issues: Enabled
Number of forks: 1,098
Total Stargazers: 6,162 (+0)
Total Subscribers: 87 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

Laravel Media Library is a PHP package that associates files with Eloquent models.

The package solves the problem of managing file uploads and storage in Laravel applications by providing a straightforward API for attaching files to models. It leverages Laravel's Filesystem abstraction, allowing files to be stored on any supported filesystem including local storage or remote services. Beyond basic file association, the tool can generate image manipulations and handle PDF processing for files added to the media library.

Developers should choose this package when building Laravel applications that require robust file management tied to database models. It suits projects ranging from simple image uploads to complex media handling workflows. The package is particularly valuable when you need flexibility in storage backends or when working with image transformations, as these capabilities are built into the core functionality rather than requiring separate integrations.

The project maintains comprehensive documentation and provides clear upgrade paths between versions through dedicated upgrade guides. The maintainers actively address security concerns through a dedicated security email channel separate from the public issue tracker. Testing infrastructure is well-established with support for multiple PHP and Laravel version combinations through automated workflows.