for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Palmans\LaravelOpenFoodFacts;
use Illuminate\Contracts\Container\Container;
use Illuminate\Support\ServiceProvider;
class OpenFoodFactsServiceProvider extends ServiceProvider
{
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/openfoodfacts.php' => config_path('openfoodfacts.php'),
], 'config');
}
public function register()
$this->mergeConfigFrom(__DIR__.'/../config/openfoodfacts.php', 'openfoodfacts');
$this->app->singleton('openfoodfacts', function (Container $app) {
return new OpenFoodFacts($app);
});