afea/filament-testimonials

Testimonials module for the Afea Filament CMS package ecosystem: customer quotes with optional photo and video testimonials.

Maintainers

Package info

github.com/AfeaSoftware/filament-testimonials

pkg:composer/afea/filament-testimonials

Statistics

Installs: 1

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-04-21 10:48 UTC

This package is auto-updated.

Last update: 2026-04-21 11:57:41 UTC


README

Testimonials module for the Afea Filament CMS package ecosystem.

Ships:

  • Testimonial model — photo + optional video via Spatie media collections
  • Reorderable Filament v4 TestimonialResource
  • TestimonialsPlugin
  • afea:install:testimonials installer

Installation

composer require afea/filament-testimonials
php artisan afea:install:testimonials

Register in AdminPanelProvider:

->plugin(\Afea\Cms\Testimonials\Filament\TestimonialsPlugin::make())

Three common scenarios

1. Render active testimonials on the home page

use Afea\Cms\Testimonials\Models\Testimonial;

$quotes = Testimonial::query()->active()->ordered()->get();

2. Video testimonials only

$videoQuotes = Testimonial::query()
    ->active()
    ->ordered()
    ->get()
    ->filter(fn (Testimonial $t) => $t->hasVideo());

3. Model override with a custom scope

class Testimonial extends \Afea\Cms\Testimonials\Models\Testimonial
{
    public function scopeFeatured($q)
    {
        return $q->active()->where('order', '<=', 3);
    }
}
'models' => ['testimonial' => \App\Models\Testimonial::class],