for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Konectdigital\Mpesa;
use Illuminate\Support\ServiceProvider;
use Konectdigital\Mpesa\Console\InstallMpesaPackage;
class MpesaServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*/
public function boot()
if ($this->app->runningInConsole()) {
// publish config file
$this->publishes([
__DIR__ . '/../config/config.php' => config_path('mpesa.php'),
], 'config');
$this->commands([
InstallMpesaPackage::class,
]);
}
* Register the application services.
public function register()
// Automatically apply the package configuration
$this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'mpesa');
// Register the main class to use with the facade
$this->app->bind('mpesa', function ($app) {
$app
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new Mpesa();
});
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.