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 App\View\Components\Forms; use Closure; use Illuminate\Contracts\View\Vi..

Decoded Output download

<?php

namespace App\View\Components\Forms;

use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class Button extends Component
{
    /**
     * Create a new component instance.
     */
    public function __construct(
        public bool $disabled = false,
        public bool $noStyle = false,
        public ?string $modalId = null,
        public string $defaultClass = 'button'
    ) {
        if ($this->noStyle) {
            $this->defaultClass = '';
        }
    }

    public function render(): View|Closure|string
    {
        return view('components.forms.button');
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\View\Components\Forms;

use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;

class Button extends Component
{
    /**
     * Create a new component instance.
     */
    public function __construct(
        public bool $disabled = false,
        public bool $noStyle = false,
        public ?string $modalId = null,
        public string $defaultClass = 'button'
    ) {
        if ($this->noStyle) {
            $this->defaultClass = '';
        }
    }

    public function render(): View|Closure|string
    {
        return view('components.forms.button');
    }
}

Function Calls

None

Variables

None

Stats

MD5 cda8b6664074f168a3062b924a58128d
Eval Count 0
Decode Time 91 ms