PHP code example of monooso / unobserve
1. Go to this page and download the library: Download monooso/unobserve library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
monooso / unobserve example snippets
namespace App\Observers;
use Monooso\Unobserve\CanMute;
class UserObserver
{
use CanMute;
}
UserObserver::mute();
UserObserver::unmute();
UserObserver::mute();
UserObserver::mute('creating');
UserObserver::mute(['creating', 'created']);