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\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('songs', static function (Blueprint $table): void {
if (DB::getDriverName() === 'sqlite') {
$table->index('title');
} else {
$table->fullText('title');
}
$table->index(['track', 'disc']);
});
Schema::table('albums', static function (Blueprint $table): void {
if (DB::getDriverName() === 'sqlite') {
$table->index('name');
} else {
$table->fullText('name');
}
});
}
};
?>
Did this file decode correctly?
Original Code
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('songs', static function (Blueprint $table): void {
if (DB::getDriverName() === 'sqlite') {
$table->index('title');
} else {
$table->fullText('title');
}
$table->index(['track', 'disc']);
});
Schema::table('albums', static function (Blueprint $table): void {
if (DB::getDriverName() === 'sqlite') {
$table->index('name');
} else {
$table->fullText('name');
}
});
}
};
Function Calls
| None |
Stats
| MD5 | 9f171d9e389ab496c124befb62e79e96 |
| Eval Count | 0 |
| Decode Time | 132 ms |