protected function registerReleases()
    {
        $this->app->singleton(ReleasesContract::class, function ($app) {
            $cache = $app['cache.store'];
            $token = $app['config']->get('services.github.token');

            return new Releases($cache, $token);
        });
    }
protected function registerReleases()
    {
        $this->app->singleton(ReleasesContract::class, function ($app) {
            $cache = $app['cache.store'];
            $token = $app['config']->get('services.github.token');

            return new Releases($cache, $token);
        });
    }
protected function registerReleases ( ) { $ this -> app -> singleton ( ReleasesContract :: class , function ( $ app ) { $ cache = $ app [ 'cache.store' ] ; $ token = $ app [ 'config' ] -> get ( 'services.github.token' ) ; return new Releases ( $ cache , $ token ) ; } ) ; }
Register the releases class.

@return void
Register the releases class .