public static function bootAuditable()
    {
        $class_name = get_called_class();
        Event::listen('eloquent.saved: ' . $class_name, function ($target) use ($class_name) {
            if (method_exists($class_name, 'eventAuditLogger')) {
                call_user_func($class_name . '::eventAuditLogger', $target);
            }
        });
    }
public static function bootAuditable()
    {
        $class_name = get_called_class();
        Event::listen('eloquent.saved: ' . $class_name, function ($target) use ($class_name) {
            if (method_exists($class_name, 'eventAuditLogger')) {
                call_user_func($class_name . '::eventAuditLogger', $target);
            }
        });
    }
public static function bootAuditable ( ) { $ class_name = get_called_class ( ) ; Event :: listen ( 'eloquent.saved: ' . $ class_name , function ( $ target ) use ( $ class_name ) { if ( method_exists ( $ class_name , 'eventAuditLogger' ) ) { call_user_func ( $ class_name . '::eventAuditLogger' , $ target ) ; } } ) ; }
Boot the auditable trait for a model.

This sets up the listeners for the internal events fired by the Laravel
base model class.  In this class we only add one listener --- for after
a model is saved.

@return void
Boot the auditable trait for a model .