for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* @copyright 2018 Hilmi Erdem KEREN
* @license MIT
*/
namespace Erdemkeren\Otp\PasswordGenerators;
use Erdemkeren\Otp\PasswordGeneratorInterface;
use Illuminate\Support\Str;
/**
* Class StringPasswordGenerator.
class StringPasswordGenerator implements PasswordGeneratorInterface
{
* Generate a string password with the given length.
*
* @param int $length
* @return string
public function generate(int $length): string
return Str::random($length);
}