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 CreatePlaylistsTable extends Migration
{
public function up(): void
{
Schema::create('playlists', static function (Blueprint $table): void {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('name');
$table->timestamps();
});
Schema::table('playlists', static function (Blueprint $table): void {
$table->foreign('user_id')->references('id')->on('users');
});
}
public function down(): void
{
Schema::drop('playlists');
}
}
?>
Did this file decode correctly?
Original Code
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePlaylistsTable extends Migration
{
public function up(): void
{
Schema::create('playlists', static function (Blueprint $table): void {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->string('name');
$table->timestamps();
});
Schema::table('playlists', static function (Blueprint $table): void {
$table->foreign('user_id')->references('id')->on('users');
});
}
public function down(): void
{
Schema::drop('playlists');
}
}
Function Calls
None |
Stats
MD5 | 3ee2dffcff0b5ce44f2247c50624f9b3 |
Eval Count | 0 |
Decode Time | 94 ms |