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 LegacyTests\Browser\DynamicComponentLoading; use Illuminate\Support\Faca..

Decoded Output download

<?php

namespace LegacyTests\Browser\DynamicComponentLoading;

use Illuminate\Support\Facades\View;
use Livewire\Component as BaseComponent;

class ClickableComponent extends BaseComponent
{
    public $success = false;

    public function clickMe()
    {
        // Calling this method should never fail, even if the component is loaded dynamically via POST.
        // By setting the component property here, we can draw the final message for the test to succeed.

        $this->success = true;
    }

    public function render()
    {
        return View::file(__DIR__.'/view-clickable-component.blade.php');
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace LegacyTests\Browser\DynamicComponentLoading;

use Illuminate\Support\Facades\View;
use Livewire\Component as BaseComponent;

class ClickableComponent extends BaseComponent
{
    public $success = false;

    public function clickMe()
    {
        // Calling this method should never fail, even if the component is loaded dynamically via POST.
        // By setting the component property here, we can draw the final message for the test to succeed.

        $this->success = true;
    }

    public function render()
    {
        return View::file(__DIR__.'/view-clickable-component.blade.php');
    }
}

Function Calls

None

Variables

None

Stats

MD5 44a963403f0dd60a36c59491e6558b69
Eval Count 0
Decode Time 115 ms