GravatarServiceProvider.php
/**
     * Register the service provider.
     *
     * @return void
     */
Register the service provider.
@return void
Register the service provider . @return void
public function register()
    {
        $this->app->singleton('gravatar', function ($app) {
            return new \NetForce\Gravatar\Gravatar($app);
        });
        $this->app->booting(function () {
            $loader = \Illuminate\Foundation\AliasLoader::getInstance();
            $loader->alias('Gravatar', '\NetForce\Gravatar\Facades\Gravatar');
        });
    }
public function register ( ) { $ this -> app -> singleton ( 'gravatar' , function ( $ app ) { return new \ NetForce \ Gravatar \ Gravatar ( $ app ) ; } ) ; $ this -> app -> booting ( function ( ) { $ loader = \ Illuminate \ Foundation \ AliasLoader :: getInstance ( ) ; $ loader -> alias ( 'Gravatar' , '\NetForce\Gravatar\Facades\Gravatar' ) ; } ) ; }
Register the service provider.
Register the service provider .
// Registrar provider // Booting