for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Luigel\Paymongo;
use Illuminate\Support\ServiceProvider;
class PaymongoServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
/*
* Optional methods to load your package assets
// $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-paymongo');
// $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-paymongo');
// $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
// $this->loadRoutesFrom(__DIR__.'/routes.php');
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__.'/../config/config.php' => config_path('paymongo.php'),
], 'config');
// Publishing the views.
/*$this->publishes([
__DIR__.'/../resources/views' => resource_path('views/vendor/laravel-paymongo'),
], 'views');*/
// Publishing assets.
__DIR__.'/../resources/assets' => public_path('vendor/laravel-paymongo'),
], 'assets');*/
// Publishing the translation files.
__DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-paymongo'),
], 'lang');*/
// Registering package commands.
// $this->commands([]);
}
* Register the application services.
public function register()
// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__.'/../config/config.php', 'paymongo');
// Register the main class to use with the facade
$this->app->singleton('paymongo', function () {
return new Paymongo;
});