/** * Generate a more truly "random" alpha-numeric string. * * @param int $length * @return string * * @throws \RuntimeException */ function str_random($length = 16) { return Str::random($length); }
/** * Generate a random key for the application. * * @return string */ protected function getRandomKey() { return Str::random(32); }