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 ProtoneMedia\Splade\Components\Form; use Illuminate\Support\HtmlString; ..

Decoded Output download

<?php

namespace ProtoneMedia\Splade\Components\Form;

use Illuminate\Support\HtmlString;
use Illuminate\View\Component;
use ProtoneMedia\Splade\Components\Form;

class Textarea extends Component
{
    use InteractsWithFormElement;

    private static $defaultAutosize = false;

    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct(
        public string $name = '',
        public string $vModel = '',
        public HtmlString|string $label = '',
        public string $validationKey = '',
        public bool $showErrors = true,
        public HtmlString|string $help = '',
    ) {
        Form::allowAttribute($name);
    }

    /**
     * Enable Autosize globally for all textarea elements.
     *
     * @param  array|bool  $options
     * @return void
     */
    public static function defaultAutosize(bool $value = true)
    {
        static::$defaultAutosize = $value;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|\Closure|string
     */
    public function render()
    {
        return view('splade::form.textarea', [
            'defaultAutosizeValue' => static::$defaultAutosize,
        ]);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace ProtoneMedia\Splade\Components\Form;

use Illuminate\Support\HtmlString;
use Illuminate\View\Component;
use ProtoneMedia\Splade\Components\Form;

class Textarea extends Component
{
    use InteractsWithFormElement;

    private static $defaultAutosize = false;

    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct(
        public string $name = '',
        public string $vModel = '',
        public HtmlString|string $label = '',
        public string $validationKey = '',
        public bool $showErrors = true,
        public HtmlString|string $help = '',
    ) {
        Form::allowAttribute($name);
    }

    /**
     * Enable Autosize globally for all textarea elements.
     *
     * @param  array|bool  $options
     * @return void
     */
    public static function defaultAutosize(bool $value = true)
    {
        static::$defaultAutosize = $value;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\Contracts\View\View|\Closure|string
     */
    public function render()
    {
        return view('splade::form.textarea', [
            'defaultAutosizeValue' => static::$defaultAutosize,
        ]);
    }
}

Function Calls

None

Variables

None

Stats

MD5 9bc1f5cf1d270226f55e8d9fbdfa340b
Eval Count 0
Decode Time 102 ms