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 TCG\Voyager\Models\Page;
class CreatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Create table for storing roles
Schema::create('pages', function (Blueprint $table) {
$table->increments('id');
$table->integer('author_id');
$table->string('title');
$table->text('excerpt')->nullable();
$table->text('body')->nullable();
$table->string('image')->nullable();
$table->string('slug')->unique();
$table->text('meta_description')->nullable();
$table->text('meta_keywords')->nullable();
$table->enum('status', Page::$statuses)->default(Page::STATUS_INACTIVE);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('pages');
}
}
?>
Did this file decode correctly?
Original Code
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use TCG\Voyager\Models\Page;
class CreatePagesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
// Create table for storing roles
Schema::create('pages', function (Blueprint $table) {
$table->increments('id');
$table->integer('author_id');
$table->string('title');
$table->text('excerpt')->nullable();
$table->text('body')->nullable();
$table->string('image')->nullable();
$table->string('slug')->unique();
$table->text('meta_description')->nullable();
$table->text('meta_keywords')->nullable();
$table->enum('status', Page::$statuses)->default(Page::STATUS_INACTIVE);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('pages');
}
}
Function Calls
None |
Stats
MD5 | b7a161231125b9a1f3b6cdef33191180 |
Eval Count | 0 |
Decode Time | 83 ms |