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\Livewire; use App\Models\Cliente; use Livewire\Component; use App\Mo..
Decoded Output download
<?php
namespace App\Livewire; use App\Models\Cliente; use Livewire\Component; use App\Models\Persona; class BuscarClientes extends Component { public $id_cliente; public $ci; public $nombre; public $apellido_paterno; public $apellido_materno; public $telefono_1; public $telefono_2; public $direccion; protected $listeners = array("update"); protected $rules = array("nombre" => "required|string", "apellido_paterno" => "required|string", "apellido_materno" => "required|string", "telefono_1" => "nullable|numeric", "telefono_2" => "nullable|numeric", "direccion" => "required|string"); protected $messages = array("ci.required" => "El CI es obligatorio.", "ci.numeric" => "El CI debe ser un nmero.", "ci.unique" => "El CI ya est registrado."); public function update() { $persona = Persona::where("ci", $this->ci)->first(); if ($persona) { $cliente = Cliente::where("id_persona", $persona->id_persona)->first(); if ($cliente) { $this->id_cliente = $cliente->id_persona; $this->ci = $persona->ci; $this->nombre = $persona->nombre; $this->apellido_paterno = $persona->apellido_paterno; $this->apellido_materno = $persona->apellido_materno; $this->telefono_1 = $persona->telefono_1; $this->telefono_2 = $persona->telefono_2; $this->direccion = $cliente->direccion; } else { $this->reset(array("id_cliente", "nombre", "apellido_paterno", "apellido_materno", "telefono_1", "telefono_2", "direccion")); } } else { $this->reset(array("id_cliente", "nombre", "apellido_paterno", "apellido_materno", "telefono_1", "telefono_2", "direccion")); $this->validate(array("ci" => "required|numeric|unique:personas,ci")); } $this->validate(); } public function render() { return view("livewire.buscar-clientes"); } } ?>
Did this file decode correctly?
Original Code
<?php
namespace App\Livewire; use App\Models\Cliente; use Livewire\Component; use App\Models\Persona; class BuscarClientes extends Component { public $id_cliente; public $ci; public $nombre; public $apellido_paterno; public $apellido_materno; public $telefono_1; public $telefono_2; public $direccion; protected $listeners = array("\x75\160\x64\x61\x74\x65"); protected $rules = array("\156\157\155\x62\162\145" => "\x72\145\161\165\151\162\145\x64\x7c\163\164\x72\151\x6e\147", "\x61\x70\145\x6c\x6c\x69\144\x6f\137\x70\x61\164\x65\x72\x6e\x6f" => "\162\x65\x71\165\x69\162\145\x64\174\x73\164\x72\151\x6e\147", "\141\160\145\x6c\154\151\x64\x6f\x5f\155\x61\x74\x65\x72\156\x6f" => "\162\145\161\x75\x69\162\145\x64\174\163\164\162\151\156\x67", "\x74\145\154\x65\146\157\156\157\137\x31" => "\156\x75\154\x6c\x61\142\154\x65\174\156\165\155\x65\162\151\143", "\164\x65\x6c\x65\x66\157\x6e\157\137\62" => "\x6e\165\x6c\x6c\x61\142\x6c\x65\x7c\156\x75\155\x65\162\151\x63", "\144\151\162\145\143\x63\x69\157\x6e" => "\x72\145\x71\x75\x69\162\x65\144\174\x73\164\x72\x69\156\x67"); protected $messages = array("\143\x69\56\162\x65\x71\x75\x69\x72\x65\144" => "\x45\x6c\x20\103\x49\x20\145\163\x20\x6f\142\154\151\147\141\x74\157\162\151\x6f\56", "\x63\x69\x2e\156\165\x6d\x65\162\x69\x63" => "\105\154\x20\103\x49\40\144\145\142\145\40\x73\145\x72\40\165\156\40\156\303\272\155\145\162\157\56", "\x63\x69\x2e\x75\x6e\151\161\x75\145" => "\x45\154\x20\x43\111\x20\x79\141\x20\x65\x73\164\303\xa1\x20\x72\x65\147\151\x73\x74\x72\x61\x64\x6f\x2e"); public function update() { $persona = Persona::where("\143\x69", $this->ci)->first(); if ($persona) { $cliente = Cliente::where("\151\x64\x5f\x70\145\x72\x73\x6f\156\x61", $persona->id_persona)->first(); if ($cliente) { $this->id_cliente = $cliente->id_persona; $this->ci = $persona->ci; $this->nombre = $persona->nombre; $this->apellido_paterno = $persona->apellido_paterno; $this->apellido_materno = $persona->apellido_materno; $this->telefono_1 = $persona->telefono_1; $this->telefono_2 = $persona->telefono_2; $this->direccion = $cliente->direccion; } else { $this->reset(array("\x69\144\x5f\143\154\151\x65\156\164\x65", "\x6e\157\x6d\x62\x72\x65", "\141\160\x65\x6c\154\151\144\x6f\x5f\160\141\x74\x65\162\x6e\x6f", "\x61\160\x65\x6c\x6c\x69\144\x6f\137\x6d\141\x74\x65\162\156\x6f", "\164\145\154\145\146\157\x6e\x6f\x5f\61", "\164\145\x6c\x65\x66\157\x6e\157\137\62", "\x64\x69\x72\x65\143\143\151\x6f\156")); } } else { $this->reset(array("\x69\144\x5f\x63\154\151\145\156\164\145", "\156\x6f\x6d\142\162\x65", "\x61\160\145\154\x6c\x69\144\x6f\137\x70\141\164\145\162\156\x6f", "\141\x70\x65\154\154\x69\144\157\x5f\155\x61\x74\x65\x72\156\157", "\x74\145\154\x65\x66\157\x6e\157\x5f\x31", "\164\x65\154\x65\146\x6f\156\x6f\x5f\62", "\144\151\x72\145\143\x63\x69\157\156")); $this->validate(array("\x63\x69" => "\x72\145\161\x75\151\x72\145\144\x7c\156\x75\x6d\x65\x72\x69\143\174\x75\x6e\x69\161\x75\145\72\160\145\162\x73\x6f\x6e\141\163\x2c\x63\151")); } $this->validate(); } public function render() { return view("\x6c\x69\166\x65\167\151\162\x65\56\142\165\x73\x63\x61\x72\x2d\x63\x6c\x69\145\x6e\x74\145\x73"); } }
Function Calls
None |
Stats
MD5 | 2fdb15cbad74810e2e6a6d425c7e7e1f |
Eval Count | 0 |
Decode Time | 88 ms |