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;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('teams', function (Blueprint $table) {
            $table->boolean('telegram_notifications_scheduled_tasks')->default(true);
            $table->boolean('smtp_notifications_scheduled_tasks')->default(false)->after('smtp_notifications_status_changes');
            $table->boolean('discord_notifications_scheduled_tasks')->default(true)->after('discord_notifications_status_changes');
            $table->text('telegram_notifications_scheduled_tasks_thread_id')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('teams', function (Blueprint $table) {
            $table->dropColumn('telegram_notifications_scheduled_tasks');
            $table->dropColumn('smtp_notifications_scheduled_tasks');
            $table->dropColumn('discord_notifications_scheduled_tasks');
            $table->dropColumn('telegram_notifications_scheduled_tasks_thread_id');
        });
    }
};
 ?>

Did this file decode correctly?

Original Code

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('teams', function (Blueprint $table) {
            $table->boolean('telegram_notifications_scheduled_tasks')->default(true);
            $table->boolean('smtp_notifications_scheduled_tasks')->default(false)->after('smtp_notifications_status_changes');
            $table->boolean('discord_notifications_scheduled_tasks')->default(true)->after('discord_notifications_status_changes');
            $table->text('telegram_notifications_scheduled_tasks_thread_id')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('teams', function (Blueprint $table) {
            $table->dropColumn('telegram_notifications_scheduled_tasks');
            $table->dropColumn('smtp_notifications_scheduled_tasks');
            $table->dropColumn('discord_notifications_scheduled_tasks');
            $table->dropColumn('telegram_notifications_scheduled_tasks_thread_id');
        });
    }
};

Function Calls

None

Variables

None

Stats

MD5 3aa58fcd4b6f5de6cd56b4faa06201c4
Eval Count 0
Decode Time 84 ms