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 CreateSongsTable extends Migration
{
public function up(): void
{
Schema::create('songs', static function (Blueprint $table): void {
$table->string('id', 32)->primary();
$table->integer('album_id')->unsigned();
$table->string('title');
$table->float('length');
$table->text('lyrics');
$table->text('path');
$table->integer('mtime');
$table->timestamps();
});
Schema::table('songs', static function (Blueprint $table): void {
$table->foreign('album_id')->references('id')->on('albums');
});
}
public function down(): void
{
Schema::drop('songs');
}
}
?>
Did this file decode correctly?
Original Code
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateSongsTable extends Migration
{
public function up(): void
{
Schema::create('songs', static function (Blueprint $table): void {
$table->string('id', 32)->primary();
$table->integer('album_id')->unsigned();
$table->string('title');
$table->float('length');
$table->text('lyrics');
$table->text('path');
$table->integer('mtime');
$table->timestamps();
});
Schema::table('songs', static function (Blueprint $table): void {
$table->foreign('album_id')->references('id')->on('albums');
});
}
public function down(): void
{
Schema::drop('songs');
}
}
Function Calls
| None |
Stats
| MD5 | 3259b93c9a4741cc6caa573e077cf675 |
| Eval Count | 0 |
| Decode Time | 118 ms |