PHPackages                             yuges-code/laravel-mediable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. yuges-code/laravel-mediable

ActiveLibrary[Image &amp; Media](/categories/media)

yuges-code/laravel-mediable
===========================

🎴 Package for easily uploading and attaching media files to Laravel eloquent models

1.0.4(1y ago)48MITPHPPHP ^8.4CI passing

Since May 19Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/yuges-code/laravel-mediable)[ Packagist](https://packagist.org/packages/yuges-code/laravel-mediable)[ Docs](https://yuges-code.github.io/laravel-mediable)[ GitHub Sponsors](https://github.com/yuges-code)[ RSS](/packages/yuges-code-laravel-mediable/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

 [![](https://raw.githubusercontent.com/yuges-code/laravel-mediable/master/assets/logo.png)](https://raw.githubusercontent.com/yuges-code/laravel-mediable/master/assets/logo.png)

 **Build **[![GitHub Branch Check Runs](https://camo.githubusercontent.com/a85d5e134540582845810ce25eba5803429695441c5d55b1384ec2efd7d426a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f79756765732d636f64652f6c61726176656c2d6d65646961626c652f6d61696e)](https://camo.githubusercontent.com/a85d5e134540582845810ce25eba5803429695441c5d55b1384ec2efd7d426a2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f79756765732d636f64652f6c61726176656c2d6d65646961626c652f6d61696e) [![GitHub Tests Action Status](https://camo.githubusercontent.com/fe92b2df3d503409688e1e522464eced56d6c1b83f86ceec68ecca79c3a68af8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756765732d636f64652f6c61726176656c2d6d65646961626c652f74657374696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fe92b2df3d503409688e1e522464eced56d6c1b83f86ceec68ecca79c3a68af8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f79756765732d636f64652f6c61726176656c2d6d65646961626c652f74657374696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)****

 ******Project** [![GitHub Release](https://camo.githubusercontent.com/0f3db66114958f0f52e3ab6b23041609eadf22308b37e82e424fa0e198aec7af/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f79756765732d636f64652f6c61726176656c2d6d65646961626c65)](https://camo.githubusercontent.com/0f3db66114958f0f52e3ab6b23041609eadf22308b37e82e424fa0e198aec7af/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f79756765732d636f64652f6c61726176656c2d6d65646961626c65) [![Packagist Downloads](https://camo.githubusercontent.com/dfa278bc90de8044e99bd0e097d2dca52ecdc5e0c7db5483459b558de47e39be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79756765732d636f64652f6c61726176656c2d6d65646961626c65)](https://camo.githubusercontent.com/dfa278bc90de8044e99bd0e097d2dca52ecdc5e0c7db5483459b558de47e39be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f79756765732d636f64652f6c61726176656c2d6d65646961626c65) [![GitHub License](https://camo.githubusercontent.com/a6d80ea1c63876956e852a842c2d31af5150bcea39badbf509915e30e870753f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79756765732d636f64652f6c61726176656c2d6d65646961626c65)](https://camo.githubusercontent.com/a6d80ea1c63876956e852a842c2d31af5150bcea39badbf509915e30e870753f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f79756765732d636f64652f6c61726176656c2d6d65646961626c65) [![Packagist Stars](https://camo.githubusercontent.com/eee74c014a793a59c3b411874b155e614ab94df78920de2a72e321171a5aa03a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f79756765732d636f64652f6c61726176656c2d6d65646961626c65)](https://camo.githubusercontent.com/eee74c014a793a59c3b411874b155e614ab94df78920de2a72e321171a5aa03a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f79756765732d636f64652f6c61726176656c2d6d65646961626c65) [![Packagist Dependency Version](https://camo.githubusercontent.com/e829534c9da7214392045b8b47fe70f94b7b9b8d8427b48040ecf557dcd2757a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f79756765732d636f64652f6c61726176656c2d6d65646961626c652f706870)](https://camo.githubusercontent.com/e829534c9da7214392045b8b47fe70f94b7b9b8d8427b48040ecf557dcd2757a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f79756765732d636f64652f6c61726176656c2d6d65646961626c652f706870)

 **Quality**

Laravel Mediable
================

[](#laravel-mediable)

### 🎴 Package for easily uploading and attaching media files to Laravel eloquent models

[](#-package-for-easily-uploading-and-attaching-media-files-to-laravel-eloquent-models)

💿 Installation
==============

[](#-installation)

### → Composer

[](#-composer)**** You can install the package via composer:

```
composer require yuges-code/laravel-mediable

```

### → Publishing Config

[](#-publishing-config)

Publishing the config file (config/mediable.php) is optional:

```
php artisan vendor:publish --provider="Yuges\Mediable\Providers\MediableServiceProvider" --tag="mediable-configs"

```

### → Publishing Migrations

[](#-publishing-migrations)

You need to publish the migration to create the groups table:

```
php artisan vendor:publish --provider="Yuges\Mediable\Providers\MediableServiceProvider" --tag="mediable-migrations"

```

### → Running Migrations

[](#-running-migrations)

After that, you need to run migrations:

```
php artisan migrate

```

🧪 Running Tests
===============

[](#-running-tests)

### → PHPUnit tests

[](#-phpunit-tests)

To run tests, run the following command:

```
composer test

```

⚖️ License
==========

[](#️-license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

🙆🏼‍♂️ Authors Information
=========================

[](#‍️-authors-information)

Created in 2025 by:

- [Yuges-code](https://github.com/yuges-code)
- [All Contributors](../../contributors)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance51

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

5

Last Release

400d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/186908593?v=4)[yuges](/maintainers/yuges-code)[@yuges-code](https://github.com/yuges-code)

---

Top Contributors

[![goshasafonov](https://avatars.githubusercontent.com/u/48834605?v=4)](https://github.com/goshasafonov "goshasafonov (19 commits)")[![yuges-code](https://avatars.githubusercontent.com/u/186908593?v=4)](https://github.com/yuges-code "yuges-code (6 commits)")

---

Tags

fileslaravelmediamorphablepackagephpyugesphplaravelpackageyugesmediasmediable

### Embed Badge

![Health badge](/badges/yuges-code-laravel-mediable/health.svg)

```
[![Health](https://phpackages.com/badges/yuges-code-laravel-mediable/health.svg)](https://phpackages.com/packages/yuges-code-laravel-mediable)
```

###  Alternatives

[tomatophp/filament-media-manager

Manage your media files using spatie media library with easy to use GUI for FilamentPHP

14852.3k3](/packages/tomatophp-filament-media-manager)[nikkanetiya/laravel-color-palette

Laravel Wrapper for `ksubileau/color-thief-php`. Grabs the dominant color or a representative color palette from an image. Uses PHP and GD or Imagick.

3312.7k](/packages/nikkanetiya-laravel-color-palette)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
