<?php namespace Pingpong\Twitter;

use Codebird\Codebird;
use Illuminate\Support\ServiceProvider;

class TwitterServiceProvider extends ServiceProvider {

	/**
	 * Indicates if loading of the provider is deferred.
	 *
	 * @var bool
	 */
	protected $defer = false;

	/**
	 * Boot the package.
	 * 
	 * @return void 
	 */
	public function boot()
	{
		$configPath = config_path('twitter.php');

		$this->publishes([
			__DIR__ . '/../../config/config.php' => $configPath
		]);

		$this->mergeConfigFrom($configPath, 'twitter');
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		$this->app['twitter'] = $this->app->share(function($app)
		{
			$api = new Api;

            $config = $app['config']->get('twitter');

			return new Twitter(
                $api,
                $app['session.store'],
                $app['config'],
                $app['request'],
                $app['redirect'],
                $config['consumer_key'],
                $config['consumer_secret'],
                $config['oauth_token'],
                $config['oauth_token_secret'],
                $config['bearer_token'],
                $config['callback_url'],
                $config['fallback_url']
            );
		});	
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{
		return ['twitter'];
	}

}

<?php namespace Pingpong\Twitter;

use Codebird\Codebird;
use Illuminate\Support\ServiceProvider;

class TwitterServiceProvider extends ServiceProvider {

	/**
	 * Indicates if loading of the provider is deferred.
	 *
	 * @var bool
	 */
	protected $defer = false;

	/**
	 * Boot the package.
	 * 
	 * @return void 
	 */
	public function boot()
	{
		$configPath = config_path('twitter.php');

		$this->publishes([
			__DIR__ . '/../../config/config.php' => $configPath
		]);

		if (is_file($configPath)) {
			$this->mergeConfigFrom($configPath, 'twitter');
		}
	}

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register()
	{
		$this->app['twitter'] = $this->app->share(function($app)
		{
			$api = new Api;

            $config = $app['config']->get('twitter');

			return new Twitter(
                $api,
                $app['session.store'],
                $app['config'],
                $app['request'],
                $app['redirect'],
                $config['consumer_key'],
                $config['consumer_secret'],
                $config['oauth_token'],
                $config['oauth_token_secret'],
                $config['bearer_token'],
                $config['callback_url'],
                $config['fallback_url']
            );
		});	
	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides()
	{
		return ['twitter'];
	}

}

Fix publish for first installation
Fix publish for first installation
