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\Language; use Illuminate\Support\Facades\Schema; use Illuminate\Data..
Decoded Output download
<?php
use App\Models\Language;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Language::unguard();
$language = Language::find(41);
if (! $language) {
Language::create(['id' => 41, 'name' => 'Lao', 'locale' => 'lo_LA']);
}
$cur = \App\Models\Currency::find(121);
if(!$cur) {
$cur = new \App\Models\Currency();
$cur->id = 121;
$cur->code = 'LAK';
$cur->name = "Lao kip";
$cur->symbol = '';
$cur->thousand_separator = ',';
$cur->decimal_separator = '.';
$cur->precision = 2;
$cur->save();
}
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};
?>
Did this file decode correctly?
Original Code
<?php
use App\Models\Language;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Language::unguard();
$language = Language::find(41);
if (! $language) {
Language::create(['id' => 41, 'name' => 'Lao', 'locale' => 'lo_LA']);
}
$cur = \App\Models\Currency::find(121);
if(!$cur) {
$cur = new \App\Models\Currency();
$cur->id = 121;
$cur->code = 'LAK';
$cur->name = "Lao kip";
$cur->symbol = '';
$cur->thousand_separator = ',';
$cur->decimal_separator = '.';
$cur->precision = 2;
$cur->save();
}
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};
Function Calls
None |
Stats
MD5 | 0d27e28df9ea964b7f2a18ee67948ebb |
Eval Count | 0 |
Decode Time | 221 ms |