Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdmuzammalhoq/7b21c9f31ad9043f6eadedb93245ec8d to your computer and use it in GitHub Desktop.
Save mdmuzammalhoq/7b21c9f31ad9043f6eadedb93245ec8d to your computer and use it in GitHub Desktop.
if(request()->hasFile('avatar')){
$avatar = request()->file('avatar')->getClientOriginalName();
request()->file('Avatar')->storeAs('avatars', $user->id.'/'.$avatar, '');
$avatar->update(['avatar]=>$avatar);
}
return $user;
@mdmuzammalhoq
Copy link
Author

New User - Administrator Approval

https://www.youtube.com/watch?v=uiTi01Ml_OU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment