app/Console/Commands/SetupRedis.php
/**
     * Generate a random prefix for redis.
     *
     * @return string
     */
Generate a random prefix for redis.
@return string
Generate a random prefix for redis . @return string
protected function generateRandomPrefix()
    {
        $prefix = env('APP_NAME', 'maguttiCms');
        try {
            return $prefix . '_' . base64_encode(random_bytes($this->hashLength));
        } catch (Exception $e) {
            return $prefix . '_' . Str::random($this->hashLength);
        }
    }
protected function generateRandomPrefix ( ) { $ prefix = env ( 'APP_NAME' , 'maguttiCms' ) ; try { return $ prefix . '_' . base64_encode ( random_bytes ( $ this -> hashLength ) ) ; } catch ( Exception $ e ) { return $ prefix . '_' . Str :: random ( $ this -> hashLength ) ; } }
Generate a random prefix for redis.
Generate a random prefix for redis .