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\Gateway; use App\Utils\Ninja; use Illuminate\Database\Eloquent\Model..
Decoded Output download
<?php
use App\Models\Gateway;
use App\Utils\Ninja;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Model::unguard();
$gateway = [
'id' => 56,
'name' => 'Stripe Connect',
'provider' => 'StripeConnect',
'sort_order' => 1,
'key' => 'd14dd26a47cecc30fdd65700bfb67b34',
'fields' => '{"account_id":"","appleDomainVerification":""}',
];
Gateway::create($gateway);
if (Ninja::isHosted()) {
Gateway::query()->whereIn('id', [20])->update(['visible' => 0]);
Gateway::query()->whereIn('id', [56])->update(['visible' => 1]);
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};
?>
Did this file decode correctly?
Original Code
<?php
use App\Models\Gateway;
use App\Utils\Ninja;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Model::unguard();
$gateway = [
'id' => 56,
'name' => 'Stripe Connect',
'provider' => 'StripeConnect',
'sort_order' => 1,
'key' => 'd14dd26a47cecc30fdd65700bfb67b34',
'fields' => '{"account_id":"","appleDomainVerification":""}',
];
Gateway::create($gateway);
if (Ninja::isHosted()) {
Gateway::query()->whereIn('id', [20])->update(['visible' => 0]);
Gateway::query()->whereIn('id', [56])->update(['visible' => 1]);
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};
Function Calls
None |
Stats
MD5 | 46c5e7ca8c52fb39de785675c054c7bf |
Eval Count | 0 |
Decode Time | 111 ms |