fix gitlab tests
This commit is contained in:
@@ -9,7 +9,8 @@ class ExpenseReceiptService
|
||||
{
|
||||
public function __construct(
|
||||
private ApplicationUrlService $urls
|
||||
) {}
|
||||
) {
|
||||
}
|
||||
|
||||
public function storeReceipt(UploadedFile $file): string
|
||||
{
|
||||
@@ -33,7 +34,7 @@ class ExpenseReceiptService
|
||||
throw new \InvalidArgumentException('Receipt file too large. Max 5MB.');
|
||||
}
|
||||
|
||||
$filename = bin2hex(random_bytes(16)).'.'.$allowed[$mime];
|
||||
$filename = bin2hex(random_bytes(16)) . '.' . $allowed[$mime];
|
||||
$file->storeAs('receipts', $filename);
|
||||
|
||||
return $filename;
|
||||
|
||||
Reference in New Issue
Block a user