feat: download and get storage files as private (#5192)
This commit is contained in:
@@ -462,7 +462,10 @@ class ContactsController extends Controller
|
||||
}
|
||||
$contact->has_avatar = true;
|
||||
$contact->avatar_location = config('filesystems.default');
|
||||
$contact->avatar_file_name = $request->avatar->storePublicly('avatars', $contact->avatar_location);
|
||||
$contact->avatar_file_name = $request->file('avatar')->store('avatars', [
|
||||
'disk' => $contact->avatar_location,
|
||||
'visibility' => config('filesystems.default_visibility'),
|
||||
]);
|
||||
$contact->save();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user