pardalsalcap/linter-testimonials

Add management for the testimonials modules of your website

v0.1.2 2024-04-10 10:13 UTC

This package is auto-updated.

Last update: 2024-06-10 10:52:59 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package adds management for the testimonials modules of your website. It includes a trait to add to your models and a controller to manage the testimonials. It needs Filament to work, and includes resources and relation managers to use with it.

Installation

You can install the package via composer:

composer require pardalsalcap/linter-testimonials

You can publish and run the migrations with:

php artisan vendor:publish --tag="linter-testimonials-migrations"
php artisan migrate

Usage

To include use the resources you can create a resource that extends the package on and modify as needed:

<?php

namespace App\Filament\Resources;
class TestimonialResource extends \Pardalsalcap\LinterTestimonials\Resources\TestimonialResource
{

}

You can add the trait to your model:

use Pardalsalcap\LinterTestimonials\Traits\HasTestimonials;

This will add a testimonials relation to your model. From there you can retrieve the testimonials details.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.