youbar/nova-difference

A Laravel Nova field to display the difference between to values

1.0.0 2023-12-26 19:39 UTC

This package is auto-updated.

Last update: 2024-09-26 21:21:02 UTC


README

Latest Version on Packagist Total Downloads License

A Laravel Nova field to display the difference between to values. Especially useful with the use of Laravel Auditing

Installation

You can install the package via composer:

composer require youbar/nova-difference

Usage

Basic demo showing the power of this field:

use Youbar\Difference\Difference;

class ExampleNovaResource extends Resource {

    public function fields(Request $request)
    {
        return [
            Difference::make('Difference', 'old_values', 'new_values'),
        ];
    }

}

Demo

Index Field Index Field

License

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