Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Webkul\Shipping\Providers; use Illuminate\Foundation\AliasLoader; use Il..
Decoded Output download
<?php
namespace Webkul\Shipping\Providers;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
use Webkul\Shipping\Facades\Shipping as ShippingFacade;
use Webkul\Shipping\Shipping;
class ShippingServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
include __DIR__.'/../Http/helpers.php';
}
/**
* Register services.
*
* @return void
*/
public function register()
{
$this->registerFacades();
$this->registerConfig();
}
/**
* Register Bouncer as a singleton.
*
* @return void
*/
protected function registerFacades()
{
$loader = AliasLoader::getInstance();
$loader->alias('shipping', ShippingFacade::class);
$this->app->singleton('shipping', function () {
return new Shipping();
});
}
/**
* Register package config.
*
* @return void
*/
protected function registerConfig()
{
$this->mergeConfigFrom(
dirname(__DIR__).'/Config/carriers.php', 'carriers'
);
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Webkul\Shipping\Providers;
use Illuminate\Foundation\AliasLoader;
use Illuminate\Support\ServiceProvider;
use Webkul\Shipping\Facades\Shipping as ShippingFacade;
use Webkul\Shipping\Shipping;
class ShippingServiceProvider extends ServiceProvider
{
/**
* Bootstrap services.
*
* @return void
*/
public function boot()
{
include __DIR__.'/../Http/helpers.php';
}
/**
* Register services.
*
* @return void
*/
public function register()
{
$this->registerFacades();
$this->registerConfig();
}
/**
* Register Bouncer as a singleton.
*
* @return void
*/
protected function registerFacades()
{
$loader = AliasLoader::getInstance();
$loader->alias('shipping', ShippingFacade::class);
$this->app->singleton('shipping', function () {
return new Shipping();
});
}
/**
* Register package config.
*
* @return void
*/
protected function registerConfig()
{
$this->mergeConfigFrom(
dirname(__DIR__).'/Config/carriers.php', 'carriers'
);
}
}
Function Calls
None |
Stats
MD5 | 890e1142221801576fc1b641152f8ac7 |
Eval Count | 0 |
Decode Time | 116 ms |