Sometimes, we require to get gravatar image from email address in jquery. So, today i am going to share with you how to get gravatar image from email.
Gravatar is a service for providing globally unique avatars. We can simply create our account and set avatar image that we want. There are several developer and users are using this service. So, that way any of site we can simply get avatar image from email address from Gravatar account.
Today, in this example i also checked everything, If email does not registered then we can Set default image if user doesn't have Gravatar. So let's follow be.....
Gravatar is a service that provide unique globally avatars and integrated it into their WordPress.com blogging platform. If you don't have avatar image then you can get Gravatar src image from thier email if it register on WordPress.com. So if you want to implement in your laravel application then it is very easy. There are several package for Gravatar image for laravel, but we will use thomaswelton/laravel-gravatar package that is i think better.
First fire following command on your terminal.
<pre>composer require thomaswelton/laravel-gravatar</pre>