A package for unregistering Listeners from Events in Laravel!
You can install this package via composer:
composer require kirschbaum-development/mutable-listeners
Halloween
is full of Tricks
and Treats
:
class EventServiceProvider extends ServiceProvider
{
protected $listen = [
Halloween::class => [
Tricks::class,
Treats::class,
]
];
}
What if you could could get all the chocolatery without any of the chicanery?
Event::mute(Halloween::class, Tricks::class);
A trait can also be added to a Listener
for simplified muting:
use KirschbaumDevelopment\MutableListeners\Mutable;
class Tricks
{
use Mutable;
// ...
}
Tricks::mute(Halloween::class);
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] or [email protected] instead of using the issue tracker.
Development of this package is sponsored by Kirschbaum Development Group, a developer driven company focused on problem solving, team building, and community. Learn more about us or join us!
The MIT License (MIT). Please see License File for more information.