publishes([$source => config_path('cloudder.php')]); } $this->mergeConfigFrom($source, 'cloudder'); $this->app['JD\Cloudder\Cloudder'] = function ($app) { return $app['cloudder']; }; } /** * Register the service provider. * * @return void */ public function register() { $app = $this->app; $this->app->singleton('cloudder', function () use ($app) { return new CloudinaryWrapper($app['config'], new Cloudinary, new Cloudinary\Uploader, new Cloudinary\Api); }); } /** * Get the services provided by the provider. * * @return array */ public function provides() { return array('cloudder'); } }