I'm trying to save an image using the Storage
of Laravel
Storage::disk('avatars')->put($avatarName, $request->file('avatar'))
$avatarName = avatar'.time().'.'.$request->file('avatar')->getClientOriginalExtension();
The problem is that it does not save it as an image, only a text appears:
/private/var/folders/d0/z0y__8kx4yzb3xp4f58f1rlh0000gn/T/phpTNwcQb
Someone knows why you are not saving the image correctly, the name and extension places it correctly, but apparently does not save the image as such.