FEATURE #1426: add log of all users
This commit is contained in:
+2
-1
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Helpers\Gravatar;
|
||||
use Illuminate\Auth\Authenticatable;
|
||||
use Illuminate\Contracts\Auth\Authenticatable as AuthenticableInterface;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
@@ -48,6 +49,6 @@ class User extends Model implements AuthenticableInterface
|
||||
*/
|
||||
public function gravatar($size = 50)
|
||||
{
|
||||
return "http://www.gravatar.com/avatar/" . md5(strtolower(trim($this->email))) . "?s=" . $size;
|
||||
return Gravatar::img($this->email, $size);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user