for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
*
* (c) Muhideen Mujeeb Adeoye <[email protected]>
*/
namespace Mujhtech\Lazerpay;
use Illuminate\Support\ServiceProvider;
class LazerpayServiceProvider extends ServiceProvider
{
* Indicates if loading of the provider is deferred.
* @var bool
/**
* Register services.
* @return void
public function register()
//
$this->app->bind('laravel-lazerpay', function () {
return new Lazerpay;
});
}
* Publishes all the config file this package needs to function
public function boot()
$config = realpath(__DIR__ . '/../config/lazerpay.php');
$this->publishes([
$config => config_path('lazerpay.php'),
config_path
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$config => /** @scrutinizer ignore-call */ config_path('lazerpay.php'),
]);
* Get the services provided by the provider
* @return array
public function provides()
return ['laravel-lazerpay'];