private static function makeHashFilename($key, $make_group_directory = false)
    {
        $hash = hash('sha256', '/bow_'.$key);

        $group = Str::slice($hash, 0, 2);

        if ($make_group_directory) {
            if (!is_dir(static::$directory.'/'.$group)) {
                @mkdir(static::$directory.'/'.$group);
            }
        }

        return static::$directory.'/'.$group.'/'.$hash;
    }
private static function makeHashFilename($key, $make_group_directory = false)
    {
        $hash = hash('sha256', '/bow_'.$key);

        $group = Str::slice($hash, 0, 2);

        if ($make_group_directory) {
            if (!is_dir(static::$directory.'/'.$group)) {
                @mkdir(static::$directory.'/'.$group);
            }
        }

        return static::$directory.'/'.$group.'/'.$hash;
    }
private static function makeHashFilename ( $ key , $ make_group_directory = false ) { $ hash = hash ( 'sha256' , '/bow_' . $ key ) ; $ group = Str :: slice ( $ hash , 0 , 2 ) ; if ( $ make_group_directory ) { if ( ! is_dir ( static :: $ directory . '/' . $ group ) ) { @ mkdir ( static :: $ directory . '/' . $ group ) ; } } return static :: $ directory . '/' . $ group . '/' . $ hash ; }
Format the file

@param  string $key
@param  bool   $make_group_directory
@return string
Format the file