PHPackages                             ksevendev/filament-multi-blog - 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. ksevendev/filament-multi-blog

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

ksevendev/filament-multi-blog
=============================

Firefly/Filament-Blog plugin extension with site\_id support (multi-ban by site).

10PHP

Since Jun 23Pushed 10mo agoCompare

[ Source](https://github.com/ksevendev/filament-multi-blog)[ Packagist](https://packagist.org/packages/ksevendev/filament-multi-blog)[ RSS](/packages/ksevendev-filament-multi-blog/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Filament Multi Blog (by site\_id)
=================================

[](#filament-multi-blog-by-site_id)

Extension for the [firefly/filament-blog](https://github.com/thefireflytech/filament-blog) plugin, adding full support for multiple sites scoped by `site_id`.

---

🚀 Installation
--------------

[](#-installation)

```
composer require kseven/filament-multiblog
```

> Requires: Laravel 11 or 12 + FilamentPHP 3

---

⚙️ Configuration
----------------

[](#️-configuration)

1. **Publish the config file:**

```
php artisan vendor:publish --tag=filament-multiblog-config
```

2. **Check the `config/multiblog.php` file:**

```
return [
    'enabled' => env('MULTIBLOG_ENABLED', true),
    'site_model' => App\Models\Site::class,
];
```

3. **(Optional) Add the middleware to `Http\Kernel.php`:**

```
protected $middlewareGroups = [
    'web' => [
        // ...
        \Kseven\FilamentMultiBlog\Http\Middleware\DetectSite::class,
    ],
];
```

---

🧩 Features
----------

[](#-features)

- 🆔 Support for multiple blogs scoped by `site_id`
- ✅ Fully compatible with all `filament-blog` features
- 🧐 Auto-detection middleware via domain
- 🛠️ Custom Models, Resources, and Notifications scoped per site
- 📬 Automatic new post notification to subscribers per site
- 🎛️ Optional configuration for selecting `site_id`

---

📚 Usage
-------

[](#-usage)

1. Make sure your `sites` table exists and is populated.
2. The system will automatically apply `site_id` to posts and resources.
3. Use `HasSiteScope` for automatic query scoping:

```
use Kseven\FilamentMultiBlog\Traits\HasSiteScope;

class Post extends BasePost {
    use HasSiteScope;
}
```

4. When creating or editing records in the panel, the `site_id` field will be automatically handled.

---

🧪 Example Seeders
-----------------

[](#-example-seeders)

```
php artisan db:seed --class=\\Database\\Seeders\\SiteSeeder
php artisan db:seed --class=\\Database\\Seeders\\CategorySeeder
```

---

📌 Important
-----------

[](#-important)

- This package **does not modify the original plugin** directly.
- It only extends Models, Resources, and behaviors using `bind()` in its own `ServiceProvider`.

---

✨ Credits
---------

[](#-credits)

- [The Firefly Tech](https://github.com/thefireflytech) — creators of the original plugin
- [K'Seven](https://github.com/ksevendev) — maintainer and multi-site extension author

---

📄 License
---------

[](#-license)

MIT

- [Read License](https://github.com/ksevendev/filament-multi-blog/blob/master/LICENSE)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/370be5a4a8a82b20f3c9a77adc97316236c3473f87419f3595b5080bf5252bf0?d=identicon)[kseven](/maintainers/kseven)

---

Top Contributors

[![ksevendev](https://avatars.githubusercontent.com/u/32661918?v=4)](https://github.com/ksevendev "ksevendev (10 commits)")

### Embed Badge

![Health badge](/badges/ksevendev-filament-multi-blog/health.svg)

```
[![Health](https://phpackages.com/badges/ksevendev-filament-multi-blog/health.svg)](https://phpackages.com/packages/ksevendev-filament-multi-blog)
```

###  Alternatives

[pixelant/pxa-survey

Create simple survey. View results in the BE module

197.2k](/packages/pixelant-pxa-survey)

PHPackages © 2026

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