Skip to content

Commit 1be1a47

Browse files
author
Gareth Redfern
committed
remove file path backslash
1 parent 0522e83 commit 1be1a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/AvatarController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function store(Request $request)
1515
try {
1616
$user = Auth::user();
1717
$filePath = Storage::disk('spaces')
18-
->putFile('/avatars/user-'.$user->id, $request->file, 'public');
18+
->putFile('avatars/user-'.$user->id, $request->file, 'public');
1919
$user->avatar = env('DO_SPACES_PUBLIC').$filePath;
2020
$user->save();
2121
} catch (Exception $exception) {

0 commit comments

Comments
 (0)