PHPackages                             khoahuynhvietswiss/nova-mediable-manager - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. khoahuynhvietswiss/nova-mediable-manager

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

khoahuynhvietswiss/nova-mediable-manager
========================================

A Laravel Nova mediable manager tool and field.

0104↓50%Vue

Since Jun 24Pushed 2y agoCompare

[ Source](https://github.com/khoahuynhvietswiss1/nova-mediable-manager)[ Packagist](https://packagist.org/packages/khoahuynhvietswiss/nova-mediable-manager)[ RSS](/packages/khoahuynhvietswiss-nova-mediable-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nova Mediable Manager
=====================

[](#nova-mediable-manager)

This package is still in heavy development, please dont use in production
-------------------------------------------------------------------------

[](#this-package-is-still-in-heavy-development-please-dont-use-in-production)

Laravel Nova Media Manager and Field to manage Polymorphic ManyToMany Relationships.

##### Table of Contents

[](#table-of-contents)

- [Install](#install)
- [Configuration](#configuration)
- [Using With Flexible Field](#flexible)
- [Credits](#credits)
- [Alternatives](#alternatives)
- [Preview](#examples)

[![Manager](../demo/manager-1..gif)](../demo/manager-1..gif)

Install
-------

[](#install)

```
composer require naska-it/nova-mediable-manager
php artisan vendor:publish --provider="Khoahuynhvietswiss\NovaMediableManager\ToolServiceProvider"
php artisan migrate
php artisan storage:link
```

Configuration
-------------

[](#configuration)

Check in config/nova-mediable-manager.php for some extra configuration Enable Manager add to app/Providers/NovaServiceProvider.php

```
/**
 * Get the tools that should be listed in the Nova sidebar.
 *
 * @return array
 */
public function tools()
{
    return [
        new \Khoahuynhvietswiss\NovaMediableManager\NovaMediableManager
    ];
}
```

Using Field - first add HasMedia trait to your model

```
use Khoahuynhvietswiss\NovaMediableManager\HasMedia;

class Page extends Model
{
    use HasMedia;
```

Using Field - Nova Resource

```
use Khoahuynhvietswiss\NovaMediableManager\Mediable;

class Page extends Resource
{
    /**
     * Get the fields displayed by the resource.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    public function fields(Request $request)
    {
        return [
            ID::make(__('ID'), 'id')->sortable(),

            Text::make('Name'),
            Trix::make('Body'),

            Mediable::make('Image')
                ->hideFromIndex()
                ->isSingle(),

            Mediable::make('Featured')
                ->isSingle(),

            Mediable::make('Gallery'),
        ];
    }
```

Flexible
--------

[](#flexible)

If you use Mediable field inside Flexible Layout

```
use Khoahuynhvietswiss\NovaMediableManager\Mediable;

public function fields()
{
    return [
        Text::make('Headline'),
        Text::make('Slogan'),
        Mediable::make('Block')
        	->isSingle()
        	->isFlexible(),
    ];
}
```

Add to your layout HasFlexibleMediable trait

```
use Khoahuynhvietswiss\NovaMediableManager\HasFlexibleMediable;

class BlockLayout extends Layout
{
    use HasFlexibleMediable;
```

Credits
=======

[](#credits)

Where I get some code from :)

- [optixsolutions/laravel-media](https://github.com/optixsolutions/laravel-media)
-

Alternatives
============

[](#alternatives)

What I was using Before

- [ebess/advanced-nova-media-library](https://github.com/ebess/advanced-nova-media-library)

Examples
--------

[](#examples)

[![Manager](../demo/manager-1..gif)](../demo/manager-1..gif)

[![Field](../demo/mediable-field.gif)](../demo/mediable-field.gif)

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 84.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a491042eb2b52a94f978ce6891628fe619e80dc0d86ad1e564671dd571f1d366?d=identicon)[khoahuynhvietswiss1](/maintainers/khoahuynhvietswiss1)

---

Top Contributors

[![huynhanhkhoa2895](https://avatars.githubusercontent.com/u/61498350?v=4)](https://github.com/huynhanhkhoa2895 "huynhanhkhoa2895 (22 commits)")[![webstack9](https://avatars.githubusercontent.com/u/58256527?v=4)](https://github.com/webstack9 "webstack9 (4 commits)")

### Embed Badge

![Health badge](/badges/khoahuynhvietswiss-nova-mediable-manager/health.svg)

```
[![Health](https://phpackages.com/badges/khoahuynhvietswiss-nova-mediable-manager/health.svg)](https://phpackages.com/packages/khoahuynhvietswiss-nova-mediable-manager)
```

###  Alternatives

[igbinary/igbinary

Igbinary is a drop in replacement for the standard php serializer. Instead of the time and space consuming textual representation used by PHP's serialize(), igbinary stores php data structures in a compact binary form. Savings are significant when using memcached or similar memory based storages for serialized data.

7801.7k](/packages/igbinary-igbinary)[teknoo/states

Library to create classes following the State pattern in PHP. This can be a cleaner way for an object to change its behavior at runtime without resorting to large monolithic conditional statements and this improve maintainability and workflow writing.

1138.5k18](/packages/teknoo-states)[andychukse/laravel-pricing-plans

A package provide pricing plans for Laravel.

121.8k](/packages/andychukse-laravel-pricing-plans)

PHPackages © 2026

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