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 use App\Models\CompanyGateway; use App\Models\Gateway; use Illuminate\Database\Migr..
Decoded Output download
<?php
use App\Models\CompanyGateway;
use App\Models\Gateway;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$g = Gateway::find(50);
if ($g) {
$fields = json_decode($g->fields);
$fields->threeds = false;
$g->fields = json_encode($fields);
$g->save();
}
CompanyGateway::query()->where('gateway_key', 'f7ec488676d310683fb51802d076d713')->cursor()->each(function ($cg) {
$config = $cg->getConfig();
$config->threeds = false;
$cg->setConfig($config);
$cg->save();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
};
?>
Did this file decode correctly?
Original Code
<?php
use App\Models\CompanyGateway;
use App\Models\Gateway;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$g = Gateway::find(50);
if ($g) {
$fields = json_decode($g->fields);
$fields->threeds = false;
$g->fields = json_encode($fields);
$g->save();
}
CompanyGateway::query()->where('gateway_key', 'f7ec488676d310683fb51802d076d713')->cursor()->each(function ($cg) {
$config = $cg->getConfig();
$config->threeds = false;
$cg->setConfig($config);
$cg->save();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
};
Function Calls
None |
Stats
MD5 | 9d9c23a95f5ef019ee056ae3b3fd301d |
Eval Count | 0 |
Decode Time | 124 ms |