for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PagOnline\Laravel;
use Illuminate\Support\ServiceProvider;
use PagOnline\IgfsCgFactory;
/**
* Class PagOnlineServiceProvider.
*/
class PagOnlineServiceProvider extends ServiceProvider
{
public function boot()
$this->registerPublishing();
}
* Register resources that can be published.
public function registerPublishing()
$this->publishes([
__DIR__.'/../../config/pagonline.php' => config_path('pagonline.php'),
], 'pagonline-config');
public function register()
$this->mergeConfigFrom(
__DIR__.'/../../config/pagonline.php', 'pagonline'
);
$this->registerFactory();
* Register Factory Facade.
public function registerFactory()
$this->app->singleton('igfscg', function () {
return new IgfsCgFactory();
});
$this->app->alias('igfscg', IgfsCgFactory::class);