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 declare(strict_types=1); namespace Tests\Unit\Migrations; use Illuminate\Database..
Decoded Output download
<?php
declare(strict_types=1);
namespace Tests\Unit\Migrations;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$this->createUsersTable();
}
public function down(): void
{
Schema::drop('users');
}
private function createUsersTable(): void
{
Schema::create('users', static function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name')->nullable();
$table->string('email')->unique();
$table->timestamps();
});
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
namespace Tests\Unit\Migrations;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$this->createUsersTable();
}
public function down(): void
{
Schema::drop('users');
}
private function createUsersTable(): void
{
Schema::create('users', static function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name')->nullable();
$table->string('email')->unique();
$table->timestamps();
});
}
}
Function Calls
None |
Stats
MD5 | 59f6985a6e27e269986672db27bdc292 |
Eval Count | 0 |
Decode Time | 104 ms |