Laravel 5 - load gravatar image using thomaswelton/laravel-gravatar package

Laravel 5 - load gravatar image using thomaswelton/laravel-gravatar package

It's very easy to setup Gravatars on your site but before going with steps, you should know what is actually meaning of Gravatars, An avatar is a graphical representation of a user.

This service was actually created by Tom Preston-Werner to provide globally unique avatars, It could be the person's picture or random icon associated with registered emails.

There are several packages available to get Gravatar images but for this example I am going to use thomaswelton/laravel-gravatar package for Laravel application.

Package Installation

First, You will require this package in your application via composer by running following command :

 composer require thomaswelton/laravel-gravatar

Now register the service provider and its aliase in the config/app.php

'providers' => [
	....
	Thomaswelton\LaravelGravatar\LaravelGravatarServiceProvider::class,
],
'aliases' => [
	....
	'Gravatar' => Thomaswelton\LaravelGravatar\Facades\Gravatar::class
],

Now you are ready to use it in your application by following way :

Gravatar::exists($email) will return boolean to let you know if the $email is associated with Gravatar.

Gravatar::src($email, $size = null, $rating = null) will return the complete URL for the Gravatar registered witl email address.

<!-- Show image with default dimensions -->
<img src="{{ Gravatar::src('thomaswelton@me.com') }}">
<!-- Show image at 200px -->
<img src="{{ Gravatar::src('thomaswelton@me.com', 200) }}">

Phone: (+91) 8800417876
Noida, 201301
ataşehir escort maltepe escort bostancı escort kadıköy escort maltepe escort ataşehir escort tuzla escort pendik escort ümraniye escort kartal escort
pendik escort
izmir escort izmir escort izmir escort izmir escort denizli escort antalya escort antalya escort antalya escort izmir escort izmir escort izmir escort izmir escort izmir escort
hatay escort nevsehir escort nigde escort kirikkale escort batman escort osmaniye escort kirklareli escort tokat escort rize escort adiyaman escort gumushane escort batman escort
porno izle
cialis satış cialis fiyat cialis 20 mg cialis 100 mg cialis 5 mg fiyat
sohbet okey oyna
ankara escort marmaris escort bursa escort mersin escort antalya escort izmir escort samsun escort bodrum escort çeşme escort kuşadası escort adana escort eskişehir escort gaziantep escort esenyurt escort pendik escort tuzla escort fatih escort ümraniye escort mecidiyeköy escort kartal escort bahçelievler escort bahçeşehir escort ataşehir escort bakırköy escort nişantaşı escort avcılar escort büyükçekmece escort kurtkoy escort konya escort beşiktaş escort taksim escort beylikdüzü escort malatya escort sakarya escort şişli escort maltepe escort kadıköy escort ataköy escort bostancı escort şirinevler escort bağcılar escort üsküdar escort etiler escort başaksehir escort ortaköy escort kağıthane escort sultangazi escort halkalı escort çekmeköy escort şaşkınbakkal escort mamak escort sincan escort keçiören escort çankaya escort beypazarı escort akyurt escort pursaklar escort kahramankazan escort göztepe escort alsancak escort bornova escort buca escort karabaglar escort karşıyaka escort konak escort narlıdere escort izmit escort başiskele escort kandira escort körfez escort karamürsel escort dilovası escort gölcük escort gebze escort kocaeli escort kayseri escort elazığ escort denizli escort diyarbakir escort adana escort ankara escort izmir escort antalya escort gaziantep escort kayseri escort konya escort mersin escort denizli escort kocaeli escort diyarbakır escort