Looking to hire Laravel developers? Try LaraJobs

laravel-ignorable maintained by hotash

Description
Ignorable package for Laravel.
Last update
2022/07/17 17:02 (dev-master)
License
Links
Downloads
48

Comments
comments powered by Disqus

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.