FEATURE #1426: add log of all users

This commit is contained in:
Michal Kváček
2016-02-08 23:05:32 +01:00
parent 9de95c24c8
commit 2ab3896ee7
9 changed files with 119 additions and 14 deletions
+2 -1
View File
@@ -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);
}
}