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\CompanyUser; use Illuminate\Database\Migrations\Migration; use Illum..
Decoded Output download
<?php
use App\Models\CompanyUser;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('company_user', function (Blueprint $table) {
$table->unsignedInteger('number_years_active')->default(3);
});
CompanyUser::cursor()->each(function ($cu) {
$cu->number_years_active = 3;
$cu->save();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
};
?>
Did this file decode correctly?
Original Code
<?php
use App\Models\CompanyUser;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('company_user', function (Blueprint $table) {
$table->unsignedInteger('number_years_active')->default(3);
});
CompanyUser::cursor()->each(function ($cu) {
$cu->number_years_active = 3;
$cu->save();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
};
Function Calls
None |
Stats
MD5 | a53d486c239bc57b5edcafc8bcca5294 |
Eval Count | 0 |
Decode Time | 113 ms |