Append Gravatar Attribute to the Laravel Eloquent User Model

Originally published at: Append Gravatar Attribute to the Laravel Eloquent User Model - Server Side Up

There are so many useful tricks when it comes with working with Laravel Eloquent. This is one of my favorites. It allows you to simply make a computed attribute on the User model that returns the user’s Gravatar URL. Best part? It’s only a few lines of code. Let’s jump in! Step 1: Open Your…