public static function register()
    {
        $namespace = "Vinala\App\Events";

        foreach (get_declared_classes() as $value) {
            if (Strings::contains($value, $namespace)) {
                $name = self::getName($value);

                $events = $value::getEvents();

                if (!is_null($events)) {
                    foreach ($events as $key => $value) {
                        $data[$name.'.'.$key] = $value;
                    }
                }

                self::$listners = array_collapse([$data, self::$listners]);
            }
        }
    }
public static function register()
    {
        $namespace = "Vinala\App\Events";

        foreach (get_declared_classes() as $value) {
            if (Strings::contains($value, $namespace)) {
                $name = self::getName($value);

                $events = $value::getEvents();

                if (!is_null($events)) {
                    foreach ($events as $key => $value) {
                        $data[$name.'.'.$key] = $value;
                    }
                }

                self::$listners = array_collapse([$data, self::$listners]);
            }
        }
    }
public static function register ( ) { $ namespace = "Vinala\App\Events" ; foreach ( get_declared_classes ( ) as $ value ) { if ( Strings :: contains ( $ value , $ namespace ) ) { $ name = self :: getName ( $ value ) ; $ events = $ value :: getEvents ( ) ; if ( ! is_null ( $ events ) ) { foreach ( $ events as $ key => $ value ) { $ data [ $ name . '.' . $ key ] = $ value ; } } self :: $ listners = array_collapse ( [ $ data , self :: $ listners ] ) ; } } }
Register all listners.

@return null
Register all listners .