protected function setupConfig()
{
$source = realpath(__DIR__ . '/../config/mollie.php');
// Check if the application is a Laravel OR Lumen instance to properly merge the configuration file.
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
$this->publishes([$source => config_path('mollie.php')]);
} elseif ($this->app instanceof LumenApplication) {
$this->app->configure('mollie');
}
$this->mergeConfigFrom($source, 'mollie');
}