<?php namespace ZackKitzmiller\Laravel5;

use ZackKitzmiller\Tiny;
use Illuminate\Support\ServiceProvider;

class TinyServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $this->app['tiny.generate'] = $this->app->share(function ($app) {
            return new TinyGenerateCommand();
        });

        $this->commands('tiny.generate');
    }

    public function register()
    {
        $this->app['tiny'] = $this->app->share(function ($app) {
            $key = getenv('LEAGUE_TINY_KEY');

            return new Tiny($key);
        });
    }

    public function provides()
    {
        return array('tiny');
    }
}

<?php namespace ZackKitzmiller\Laravel5;

use ZackKitzmiller\Tiny;
use Illuminate\Support\ServiceProvider;

class TinyServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $this->app->singleton('tiny.generate', function () {
            return new TinyGenerateCommand();
        });

        $this->commands('tiny.generate');
    }

    public function register()
    {
        $this->app->singleton('tiny', function () {
            $key = getenv('LEAGUE_TINY_KEY');

            return new Tiny($key);
        });
    }

    public function provides()
    {
        return array('tiny');
    }
}

Remove use of depracated share method in Laravel 5 service provider
Remove use of depracated share method in Laravel 5 service provider
