src/Traits/LaratrustHasEvents.php
public static function laratrustObserve($class)
    {
        $className = is_string($class) ? $class : get_class($class);

        foreach (self::$laratrustObservables as $event) {
            if (method_exists($class, $event)) {
                static::registerLaratrustEvent(Str::snake($event, '.'), $className.'@'.$event);
            }
        }
    }
public static function laratrustObserve($class)
    {
        $className = is_string($class) ? $class : get_class($class);

        foreach (self::$laratrustObservables as $event) {
            if (method_exists($class, $event)) {
                static::registerLaratrustEvent(Str::snake($event, '.'), $className.'@'.$event);
            }
        }
    }
public static function laratrustObserve ( $ class ) { $ className = is_string ( $ class ) ? $ class : get_class ( $ class ) ; foreach ( self :: $ laratrustObservables as $ event ) { if ( method_exists ( $ class , $ event ) ) { static :: registerLaratrustEvent ( Str :: snake ( $ event , '.' ) , $ className . '@' . $ event ) ; } } }
Register an observer to the Laratrust events.

@param  object|string  $class
@return void
Register an observer to the Laratrust events .