|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/poskrypt/admin.poskrypt.com/vendor/knox/pesapal/src/ |
Upload File : |
<?php
namespace Knox\Pesapal;
use Illuminate\Support\ServiceProvider;
class PesapalServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
// Publish config
$configPath = __DIR__ . '/config/pesapal.php';
$this->publishes([$configPath => config_path('pesapal.php')], 'config');
/*
* replace the register include with the below
*/
//$this->loadRoutesFrom(__DIR__.'/routes.php');
}
/**
* Register the application services.
*
* @return void
*/
public function register()
{
include __DIR__ . '/routes.php';
$this->app->singleton('pesapal',function () {
return new Pesapal;
});
}
}