Created
March 19, 2021 08:16
-
-
Save mdmuzammalhoq/7b21c9f31ad9043f6eadedb93245ec8d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(request()->hasFile('avatar')){ | |
$avatar = request()->file('avatar')->getClientOriginalName(); | |
request()->file('Avatar')->storeAs('avatars', $user->id.'/'.$avatar, ''); | |
$avatar->update(['avatar]=>$avatar); | |
} | |
return $user; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New User - Administrator Approval
https://www.youtube.com/watch?v=uiTi01Ml_OU