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 namespace Webkul\Product\Database\Migrations; use Illuminate\Database\Migrations\M..

Decoded Output download

<?php

namespace Webkul\Product\Database\Migrations;

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('product_review_images', function (Blueprint $table) {
            $table->string('type')->default('image')->change();

            $table->string('mime_type')->after('type')->nullable();
        });

        Schema::rename('product_review_images', 'product_review_attachments');
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::rename('product_review_attachments', 'product_review_images');

        Schema::table('product_review_images', function (Blueprint $table) {
            $table->string('type')->nullable()->change();

            $table->dropColumn('mime_type');
        });
    }
};
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Webkul\Product\Database\Migrations;

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('product_review_images', function (Blueprint $table) {
            $table->string('type')->default('image')->change();

            $table->string('mime_type')->after('type')->nullable();
        });

        Schema::rename('product_review_images', 'product_review_attachments');
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::rename('product_review_attachments', 'product_review_images');

        Schema::table('product_review_images', function (Blueprint $table) {
            $table->string('type')->nullable()->change();

            $table->dropColumn('mime_type');
        });
    }
};

Function Calls

None

Variables

None

Stats

MD5 39dc055219aed2c5ccd6feb2556c58fb
Eval Count 0
Decode Time 101 ms