PHPackages                             kakhura/laravel-galleriable - 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. kakhura/laravel-galleriable

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

kakhura/laravel-galleriable
===========================

This package is for create galleriable modules

1.0.1(5y ago)011MITPHPPHP &gt;=7.0.0

Since Dec 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kakhura/laravel-galleriable)[ Packagist](https://packagist.org/packages/kakhura/laravel-galleriable)[ Docs](https://github.com/kakhura/laravel-galleriable)[ RSS](/packages/kakhura-laravel-galleriable/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

kakhura/laravel-galleriable
---------------------------

[](#kakhuralaravel-galleriable)

This package is for create modules, which has media gallery.

### Docs

[](#docs)

- [Installation](#installation)
- [Configuration (Config based management)](#configuration)
- [Migrations](#migrations)

Installation
------------

[](#installation)

Add the package in your composer.json by executing the command.

```
composer require kakhura/laravel-galleriable
```

For Laravel versions before 5.5 or if not using **auto-discovery**, register the service provider in `config/app.php`

```
'providers' => [
    /*
     * Package Service Providers...
     */
    \Kakhura\Galleriable\GalleriableServiceProvider::class,
],
```

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

[](#configuration)

If you want to change ***default configuration***, you must publish default configuration file to your project by running this command in console:

```
php artisan vendor:publish --tag=kakhura-galleriable-config
```

This command will copy file `[/vendor/kakhura/laravel-galleriable/config/kakhura.galleriable.php]` to `[/config/kakhura.galleriable.php]`

Default `kakhura.galleriable.php` looks like:

```
return [
    /**
     * Use soft deletes into models and database.
     */
    'use_soft_deletes' => true,
];
```

This command will copy file `[/vendor/kakhura/laravel-galleriable/resources/views]` to `[/resources/views/vendor/admin/galleriable]`

Migrations
----------

[](#migrations)

After publish [Configuration](#configuration), you must publish **migrations**, by running this command in console:

```
php artisan vendor:publish --tag=kakhura-galleriable-migrations
```

This command will copy file `[/vendor/kakhura/laravel-galleriable/database/migrations]` to `[/database/migrations]`

After publish [Migrations](#migrations), you must add `HasGallery` trait in your model which you want to has gallery:

```
use Kakhura\Galleriable\Traits\Models\HasGallery;

class Post extends Model
{
    use HasGallery;
}
```

You must sync `Gallery` in all your model create functionality like this:

```
use Models\Post;

class PostService extends Service
{
    public fucntion create(array $data)
    {
        ...
        $post = Post::create($data);
        $images = [];
        foreach (Arr::get($data, 'images') as $key => $image) {
            $file = Helper::uploadFile($data, $fileType);
            $images[] = [
                'image_id' => $file->id,
                'sort_index' => $key,
            ];
        }
        $post->syncGallery($images);
        ...
    }
}

Enjoy.
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

1984d ago

### Community

Maintainers

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

---

Top Contributors

[![kakhura](https://avatars.githubusercontent.com/u/46687823?v=4)](https://github.com/kakhura "kakhura (6 commits)")

---

Tags

laravelgalleriable

### Embed Badge

![Health badge](/badges/kakhura-laravel-galleriable/health.svg)

```
[![Health](https://phpackages.com/badges/kakhura-laravel-galleriable/health.svg)](https://phpackages.com/packages/kakhura-laravel-galleriable)
```

###  Alternatives

[highideas/laravel-users-online

This package will provide an online users management.

203113.2k1](/packages/highideas-laravel-users-online)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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