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\Alpine\Entangle; use Livewire\Component as BaseCompo..
Decoded Output download
<?php
namespace LegacyTests\Browser\Alpine\Entangle;
use Livewire\Component as BaseComponent;
class EntangleResponseCheck extends BaseComponent
{
public $list = [
['id' => 1],
['id' => 2],
['id' => 3],
['id' => 4],
];
public $listUpdatedByAlpine = false;
public function addList()
{
$this->list[] = ['id' => count($this->list)];
}
public function updatedList()
{
$this->listUpdatedByAlpine = true;
}
public function render()
{
return
<<<'HTML'
<div>
<div x-data="{ list: $wire.entangle('list') }">
<div dusk="output">{{ $listUpdatedByAlpine ? 'true' : 'false' }}</div>
</div>
<div>
<button dusk="add" type="button" wire:click="addList">Add</button>
</div>
</div>
HTML;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace LegacyTests\Browser\Alpine\Entangle;
use Livewire\Component as BaseComponent;
class EntangleResponseCheck extends BaseComponent
{
public $list = [
['id' => 1],
['id' => 2],
['id' => 3],
['id' => 4],
];
public $listUpdatedByAlpine = false;
public function addList()
{
$this->list[] = ['id' => count($this->list)];
}
public function updatedList()
{
$this->listUpdatedByAlpine = true;
}
public function render()
{
return
<<<'HTML'
<div>
<div x-data="{ list: $wire.entangle('list') }">
<div dusk="output">{{ $listUpdatedByAlpine ? 'true' : 'false' }}</div>
</div>
<div>
<button dusk="add" type="button" wire:click="addList">Add</button>
</div>
</div>
HTML;
}
}
Function Calls
None |
Stats
MD5 | 9bf464e0e9efd9098534532402f0cc3e |
Eval Count | 0 |
Decode Time | 1101 ms |