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