hotash/laravel-ignorable

Ignorable package for Laravel.

v1.0.0 2022-07-17 15:02 UTC

This package is auto-updated.

Last update: 2024-10-17 19:55:47 UTC


README

Total Downloads Latest Stable Version License

About Package

Note: This package will help you to ignore chained method calls as per your defined condition.

Installation

require hotash/laravel-ignorable

Usages

ignorable(new Foo(), $whenToIgnore)
    ->call()->your()->method()
    ->discard($whenToDiscard) // callable or bool
    ->call()->more()->method()
    ->ignore($whenToIgnore) // callable or bool
    ->conditional()->method()->call()
    ->discard($whenToDiscard) // callable or bool
    ->again()->call()->your()->method()
    ->dump()->value;

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide is not available yet.

Code of Conduct

Description is PENDING.

Security Vulnerabilities

Description is PENDING.

License

The Ignorable package is open-sourced software licensed under the MIT license.