SHARE
TWEET

Untitled

a guest Nov 16th, 2017 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function storeAvatar()
  2.     {
  3.         $this->validate(request(), [
  4.             'avatar' => ['required', 'image']
  5.         ]);
  6.  
  7.         auth()->user()->update([
  8.             'avatar_path' => request()->file('avatar')->store('avatars', 'public')
  9.         ]);
  10.  
  11.         return response([], 204);
  12.  
  13. //        return back();
  14.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top