Skip to content

Commit 9c5e35e

Browse files
committed
fix(uploads): fixing upload
1 parent f65ac66 commit 9c5e35e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/Http/Controllers/FileUploadController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function download(FileUpload $fileUpload)
7272
}
7373

7474
// Check if the file exists
75-
if (!Storage::exists($fileUpload->path)) {
75+
if (! Storage::exists($fileUpload->path)) {
7676
abort(404, 'File not found.');
7777
}
7878

app/Models/FileUpload.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ public function user(): BelongsTo
3535

3636
/**
3737
* Get the file's download URL.
38-
*
39-
* @return string
4038
*/
4139
public function getUrlAttribute(): string
4240
{

0 commit comments

Comments
 (0)