maurohmartinez/compare-operation-backpack-laravel

Compare two models

1.0.4 2024-09-27 15:55 UTC

This package is auto-updated.

Last update: 2024-10-27 16:05:36 UTC


README

Latest Version on Packagist Total Downloads

This package adds a Compare Operation for projects using the Backpack for Laravel administration panel.

Screenshot

Screen Recording 2024-09-27 at 18 17 19

Installation

Via Composer

composer require maurohmartinez/compare-operation-backpack-laravel

Usage

To use the Operation this package provides, inside your custom CrudController add the trait:

use \MHMartinez\CompareOperation\CompareOperation;

And then customize the columns to show just like you wouyld do with the Show Operation:

protected function setupCompareOperation(): void
    {
        $this->crud->column('id');
        $this->crud->column('name');
        $this->crud->column('email');
        // etc...
    }

Change log

Changes are documented here on Github. Please see the Releases tab.

Testing

composer test

Contributing

Contributions are welcome and will be fully credited:

  • code contributions are accepted via Pull Requests to this Github repo;
  • documentation contributions are accepted via Pull Requests to this Github repo;
  • other contributions are most likely welcome in the way you see fit;

Security

If you discover any security related issues, please email :author_email instead of using the issue tracker.

Credits

License

This project is free for use, so you can install it on top of any Backpack & Laravel project.

However, please note that you do need Backpack installed, so you need to also abide by its YUMMY License. That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on backpackforlaravel.com.