Created
July 15, 2019 15:06
-
-
Save erikfig/2b2e423ea585439dd86c1a2223e4bd1a 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
protected $appends = ['avatar']; | |
protected function getAvatarAttribute() | |
{ | |
return 'https://www.gravatar.com/avatar/' . md5($this->attributes['email']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment