mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-05-08 00:04:35 +02:00
21 lines
362 B
PHP
21 lines
362 B
PHP
<?php
|
|
|
|
namespace App\Helpers;
|
|
|
|
use Illuminate\Support\Str;
|
|
|
|
class Helpers
|
|
{
|
|
/**
|
|
* Generate a unique filename
|
|
*
|
|
* @param string $ids twofaccount ids to delete
|
|
*
|
|
* @return string The filename
|
|
*/
|
|
public static function getUniqueFilename(string $extension): string
|
|
{
|
|
return Str::random(40).'.'.$extension;
|
|
}
|
|
}
|