Chinh sua giao dien phu hop tailwind css va upload
This commit is contained in:
@@ -24,7 +24,7 @@ class FileService
|
||||
|
||||
protected int $maxSize = 20480;
|
||||
|
||||
protected string $defaultDisk = 'local';
|
||||
protected string $defaultDisk = 'public';
|
||||
|
||||
/**
|
||||
* Upload files and create FeedbackAttachment records.
|
||||
@@ -35,7 +35,7 @@ class FileService
|
||||
Model $model,
|
||||
int $userId,
|
||||
?int $interactionId = null,
|
||||
string $disk = 'local',
|
||||
string $disk = 'public',
|
||||
): array {
|
||||
$records = [];
|
||||
|
||||
@@ -71,7 +71,7 @@ class FileService
|
||||
public function getTemporaryUrl(FeedbackAttachment $attachment, int $minutes = 10): string
|
||||
{
|
||||
if ($attachment->disk === 'public') {
|
||||
return Storage::disk('public')->url($attachment->path);
|
||||
return asset('storage/' . $attachment->path);
|
||||
}
|
||||
|
||||
return Storage::disk($attachment->disk)->temporaryUrl(
|
||||
|
||||
Reference in New Issue
Block a user