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 Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Bluepr..
Decoded Output download
<?php
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::create('order_payment', function (Blueprint $table) {
$table->increments('id');
$table->integer('order_id')->nullable()->unsigned();
$table->string('method');
$table->string('method_title')->nullable();
$table->json('additional')->nullable();
$table->timestamps();
$table->foreign('order_id')->references('id')->on('orders')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('order_payment');
}
};
?>
Did this file decode correctly?
Original Code
<?php
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::create('order_payment', function (Blueprint $table) {
$table->increments('id');
$table->integer('order_id')->nullable()->unsigned();
$table->string('method');
$table->string('method_title')->nullable();
$table->json('additional')->nullable();
$table->timestamps();
$table->foreign('order_id')->references('id')->on('orders')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('order_payment');
}
};
Function Calls
None |
Stats
MD5 | 5d3d9000b704977d3cf726048eaa12dd |
Eval Count | 0 |
Decode Time | 89 ms |