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 EntangleConsecutiveActions extends BaseComponent
{
public $livewireList = [];
public function add()
{
$this->livewireList[] = count($this->livewireList);
}
public function render()
{
return
<<<'HTML'
<div x-data="{ alpineList: @entangle('livewireList').live }">
<div>Alpine</div>
<div dusk="alpineOutput">
<template x-for="(item, key) in alpineList" :key="key">
<div x-text="item"></div>
</template>
</div>
<div>Livewire</div>
<div dusk="livewireOutput">
@foreach($livewireList as $key => $item)
<div>{{ $item }}</div>
@endforeach
</div>
<div>
<button dusk="alpineAdd" type="button" x-on:click="alpineList.push(alpineList.length)">Add Alpine</button>
<button dusk="livewireAdd" type="button" wire:click="add">Add Livewire</button>
</div>
</div>
HTML;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace LegacyTests\Browser\Alpine\Entangle;
use Livewire\Component as BaseComponent;
class EntangleConsecutiveActions extends BaseComponent
{
public $livewireList = [];
public function add()
{
$this->livewireList[] = count($this->livewireList);
}
public function render()
{
return
<<<'HTML'
<div x-data="{ alpineList: @entangle('livewireList').live }">
<div>Alpine</div>
<div dusk="alpineOutput">
<template x-for="(item, key) in alpineList" :key="key">
<div x-text="item"></div>
</template>
</div>
<div>Livewire</div>
<div dusk="livewireOutput">
@foreach($livewireList as $key => $item)
<div>{{ $item }}</div>
@endforeach
</div>
<div>
<button dusk="alpineAdd" type="button" x-on:click="alpineList.push(alpineList.length)">Add Alpine</button>
<button dusk="livewireAdd" type="button" wire:click="add">Add Livewire</button>
</div>
</div>
HTML;
}
}
Function Calls
None |
Stats
MD5 | 5b1668b15e767db4b12e4ca2404d6329 |
Eval Count | 0 |
Decode Time | 102 ms |