src/Extensions.php
public static function runHook($name, array $params = [ ])
    {
        static::ensureHookPoint($name);

        foreach (static::$hooks[ $name ] as $handler) {
            if ($handler instanceof \Closure) {

                call_user_func_array($handler, $params);
            } elseif (class_exists($handler)) {
                $instance = app()->make($handler);

                call_user_func_array([ $instance, 'handle' ], $params);
            }
        }
    }
public static function runHook($name, array $params = [ ])
    {
        static::ensureHookPoint($name);

        foreach (static::$hooks[ $name ] as $handler) {
            if ($handler instanceof \Closure) {

                call_user_func_array($handler, $params);
            } elseif (class_exists($handler)) {
                $instance = app()->make($handler);

                call_user_func_array([ $instance, 'handle' ], $params);
            }
        }
    }
public static function runHook ( $ name , array $ params = [ ] ) { static :: ensureHookPoint ( $ name ) ; foreach ( static :: $ hooks [ $ name ] as $ handler ) { if ( $ handler instanceof \ Closure ) { call_user_func_array ( $ handler , $ params ) ; } elseif ( class_exists ( $ handler ) ) { $ instance = app ( ) -> make ( $ handler ) ; call_user_func_array ( [ $ instance , 'handle' ] , $ params ) ; } } }
Run the given hook.

@param  string $name
@param  array  $params
@return void
Run the given hook .