LaravelPackages.net
Acme Inc.
Toggle sidebar
maurohmartinez/compare-operation-backpack-laravel

Compare two models

334
3
1.0.5
About maurohmartinez/compare-operation-backpack-laravel

maurohmartinez/compare-operation-backpack-laravel is a Laravel package for compare two models. It currently has 3 GitHub stars and 334 downloads on Packagist (latest version 1.0.5). Install it with composer require maurohmartinez/compare-operation-backpack-laravel. Discover more Laravel packages by maurohmartinez or browse all Laravel packages to compare alternatives.

Last updated

Compare Operation for Backpack for Laravel

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.

Star History Chart