PHPackages                             afea/filament-faq - 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. afea/filament-faq

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

afea/filament-faq
=================

FAQ module for the Afea Filament CMS package ecosystem: categorized FAQs with polymorphic attachment to any content model.

v0.1.0(1mo ago)017↑328.6%MITPHPPHP ^8.4

Since Apr 21Pushed 1mo agoCompare

[ Source](https://github.com/AfeaSoftware/filament-faq)[ Packagist](https://packagist.org/packages/afea/filament-faq)[ RSS](/packages/afea-filament-faq/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (10)Versions (2)Used By (0)

afea/filament-faq
=================

[](#afeafilament-faq)

FAQ module for the Afea Filament CMS package ecosystem.

Ships:

- `Faq` and `FaqCategory` models
- `HasFaqs` trait — add to any model to attach FAQs polymorphically through the `faqables` pivot (carries `order` so each host orders its FAQs independently)
- `FaqResource`, `FaqCategoryResource` (Filament v4) with reorderable tables
- `FaqsRelationManager` — drop into any resource whose model uses `HasFaqs`
- `FaqPlugin` for panel registration
- `afea:install:faq` installer

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

[](#installation)

```
composer require afea/filament-faq
php artisan afea:install:faq
```

Register in `AdminPanelProvider`:

```
->plugin(\Afea\Cms\Faq\Filament\FaqPlugin::make())
```

Attaching FAQs to another model
-------------------------------

[](#attaching-faqs-to-another-model)

### 1. Use the trait

[](#1-use-the-trait)

```
use Afea\Cms\Faq\Concerns\HasFaqs;

class BlogPost extends Model
{
    use HasFaqs;
}
```

### 2. Drop the relation manager into the host resource

[](#2-drop-the-relation-manager-into-the-host-resource)

```
use Afea\Cms\Faq\Filament\RelationManagers\FaqsRelationManager;

class BlogPostResource extends Resource
{
    public static function getRelations(): array
    {
        return [FaqsRelationManager::class];
    }
}
```

### 3. Query attached FAQs on the front-end

[](#3-query-attached-faqs-on-the-front-end)

```
$post->faqs;                 // ordered by pivot `order`
$post->activeFaqs();         // only active FAQs
$post->syncFaqs([$idA, $idB]); // reorder atomically
```

Three common scenarios
----------------------

[](#three-common-scenarios)

### 1. Model override

[](#1-model-override)

```
class Faq extends \Afea\Cms\Faq\Models\Faq
{
    public function scopeVerified(Builder $q): Builder
    {
        return $q->active()->whereNotNull('faq_category_id');
    }
}
```

```
'models' => ['faq' => \App\Models\Faq::class],
```

### 2. Bulk attach FAQs to every blog post

[](#2-bulk-attach-faqs-to-every-blog-post)

```
$post->syncFaqs(\Afea\Cms\Faq\Models\Faq::pluck('id')->all());
```

### 3. Render a FAQ section inside a Blade view

[](#3-render-a-faq-section-inside-a-blade-view)

```
@foreach ($page->activeFaqs() as $faq)

        {{ $faq->question }}
        {!! $faq->answer !!}

@endforeach
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

49d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/090664afed2a3f014aa9cc4d2225925052fbc30e1995ebb9898272dc77a5b45f?d=identicon)[ahmetozrahat](/maintainers/ahmetozrahat)

---

Top Contributors

[![ahmetozrahat](https://avatars.githubusercontent.com/u/12434217?v=4)](https://github.com/ahmetozrahat "ahmetozrahat (2 commits)")

---

Tags

laravelcmsFAQfilamentafea

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/afea-filament-faq/health.svg)

```
[![Health](https://phpackages.com/badges/afea-filament-faq/health.svg)](https://phpackages.com/packages/afea-filament-faq)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[promethys/revive

A 'RecycleBin' page where users can restore or delete permanently soft-deleted models.

162.5k](/packages/promethys-revive)[tapp/filament-form-builder

User facing form builder using Filament components

141.9k2](/packages/tapp-filament-form-builder)

PHPackages © 2026

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