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;
class CreateVisitsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(config('visitor.table_name'), function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('method')->nullable();
$table->mediumText('request')->nullable();
$table->mediumText('url')->nullable();
$table->mediumText('referer')->nullable();
$table->text('languages')->nullable();
$table->text('useragent')->nullable();
$table->text('headers')->nullable();
$table->text('device')->nullable();
$table->text('platform')->nullable();
$table->text('browser')->nullable();
$table->ipAddress('ip')->nullable();
$table->nullableMorphs('visitable'); // object model
$table->nullableMorphs('visitor'); // subject model
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists(config('visitor.table_name'));
}
}
?>
Did this file decode correctly?
Original Code
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVisitsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create(config('visitor.table_name'), function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('method')->nullable();
$table->mediumText('request')->nullable();
$table->mediumText('url')->nullable();
$table->mediumText('referer')->nullable();
$table->text('languages')->nullable();
$table->text('useragent')->nullable();
$table->text('headers')->nullable();
$table->text('device')->nullable();
$table->text('platform')->nullable();
$table->text('browser')->nullable();
$table->ipAddress('ip')->nullable();
$table->nullableMorphs('visitable'); // object model
$table->nullableMorphs('visitor'); // subject model
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists(config('visitor.table_name'));
}
}
Function Calls
None |
Stats
MD5 | 733bbf2c91bdd4a7883e3ef2d497f1f5 |
Eval Count | 0 |
Decode Time | 135 ms |