whoami7 - Manager
:
/
home
/
qbizpnmr
/
test.qbiztax.com
/
vendor
/
akaunting
/
laravel-mutable-observer
/
Upload File:
files >> /home/qbizpnmr/test.qbiztax.com/vendor/akaunting/laravel-mutable-observer/README.md
# Mutable observer package for Laravel   [](https://styleci.io/repos/462492001) [](LICENSE.md) This package allows you to `mute` and `unmute` a specific observer at will. It ships with a trait that adds mutable methods to your observer. ## Installation Run the following command: ```bash composer require akaunting/laravel-mutable-observer ``` ## Usage All you have to do is use the `Mutable` trait inside your observer. ```php namespace App\Observers; use Akaunting\MutableObserver\Traits\Mutable; class UserObserver { use Mutable; } ``` Now you can `mute` and `unmute` the observer as needed: ```php UserObserver::mute(); // Some logic, i.e. test UserObserver::unmute(); ``` ## Changelog Please see [Releases](../../releases) for more information what has changed recently. ## Contributing Pull requests are more than welcome. You must follow the PSR coding standards. ## Security Please review [our security policy](https://github.com/akaunting/laravel-sortable/security/policy) on how to report security vulnerabilities. ## Credits - [Denis Duliçi](https://github.com/denisdulici) - [Stephen Lewis](https://github.com/monooso) - [All Contributors](../../contributors) ## License The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.
Copyright ©2021 || Defacer Indonesia