Chinh sua giao dien phu hop tailwind css va upload
Some checks failed
Tests / PHP 8.3 (push) Has been cancelled
Tests / PHP 8.4 (push) Has been cancelled
Tests / PHP 8.5 (push) Has been cancelled

This commit is contained in:
2026-05-05 09:25:28 +00:00
parent 8c6b71cb8a
commit fb1f82e1a0
12 changed files with 834 additions and 466 deletions

View File

@@ -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(