<?php
namespace AppHttpControllers;
use AppHttpControllersController;
use IlluminateHttpRequest;
class UserAvatarController extends Controller
{
/**
* Update the avatar for the user.
*
* @param IlluminateHttpRequest $request
* @return IlluminateHttpResponse
*/
public function update(Request $request)
{
$path = $request->file('avatar')->store('avatars');
return $path;
}
}