public static function get($key = null, $default = null)
    {
        if (!empty($key)) {
            return isset(static::$settings[$key]) ? static::$settings[$key] : $default;
        }

        return static::$settings;
    }
public static function get($key = null, $default = null)
    {
        if (!empty($key)) {
            return isset(static::$settings[$key]) ? static::$settings[$key] : $default;
        }

        return static::$settings;
    }
public static function get ( $ key = null , $ default = null ) { if ( ! empty ( $ key ) ) { return isset ( static :: $ settings [ $ key ] ) ? static :: $ settings [ $ key ] : $ default ; } return static :: $ settings ; }
Attempts to retrieve a given key from configuration settings. Returns
default if not set.

@param  string $key
@param  mixed  $default

@return mixed
Attempts to retrieve a given key from configuration settings . Returns default if not set .