Fix upload insurances docs endpoint
This commit is contained in:
parent
d406867201
commit
3bc0883854
|
@ -9,6 +9,7 @@ use Brick\Money\Context\AutoContext;
|
|||
use Brick\Money\Money;
|
||||
use Illuminate\Http\UploadedFile;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
trait Helper
|
||||
{
|
||||
|
@ -56,7 +57,7 @@ trait Helper
|
|||
$original_filename = $file->getClientOriginalName();
|
||||
$original_filename_arr = explode('.', $original_filename);
|
||||
$file_ext = end($original_filename_arr);
|
||||
$image = $imageCode . '-' . time() . '.' . $file_ext;
|
||||
$image = $imageCode . '-' . Str::uuid() . '.' . $file_ext;
|
||||
|
||||
//Check if the directory already exists.
|
||||
$directoryName = './' . $folderName;
|
||||
|
|
Loading…
Reference in New Issue