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\Modules\Admin\Models; use App\Models\BaseModel; use Illuminate\Datab..

Decoded Output download

<?php 
 namespace App\Modules\Admin\Models; use App\Models\BaseModel; use Illuminate\Database\Eloquent\Builder; class Menu extends BaseModel { protected $table = "shimmer_liveshop_menus"; public $timestamps = false; public $guarded = array(); protected $scenarios = array("default" => array("name", "sort", "type", "route", "status", "pid", "ico", "describe")); public static function boot() { parent::boot(); static::addGlobalScope(function (Builder $builder) { $builder->where(["type" => "admin"]); }); } public function scopeSearchIds($query, $ids) { goto I3TUl; o32j6: return $query->whereIn("id", $ids); goto ibtQL; ibtQL: a2nBD: goto Epe19; I3TUl: if (!($ids && is_array($ids))) { goto a2nBD; } goto o32j6; Epe19: } public function setTypeAttribute() { $this->attributes["type"] = "admin"; } } ?>

Did this file decode correctly?

Original Code

<?php
 namespace App\Modules\Admin\Models; use App\Models\BaseModel; use Illuminate\Database\Eloquent\Builder; class Menu extends BaseModel { protected $table = "\163\150\151\x6d\x6d\x65\x72\137\154\x69\166\145\x73\150\157\x70\x5f\x6d\145\x6e\165\163"; public $timestamps = false; public $guarded = array(); protected $scenarios = array("\x64\145\146\x61\x75\x6c\164" => array("\x6e\141\x6d\145", "\163\157\162\x74", "\164\171\160\145", "\x72\x6f\165\x74\x65", "\163\x74\141\164\x75\x73", "\x70\151\x64", "\x69\x63\157", "\x64\145\x73\143\162\151\x62\x65")); public static function boot() { parent::boot(); static::addGlobalScope(function (Builder $builder) { $builder->where(["\x74\x79\160\145" => "\x61\144\x6d\151\x6e"]); }); } public function scopeSearchIds($query, $ids) { goto I3TUl; o32j6: return $query->whereIn("\x69\x64", $ids); goto ibtQL; ibtQL: a2nBD: goto Epe19; I3TUl: if (!($ids && is_array($ids))) { goto a2nBD; } goto o32j6; Epe19: } public function setTypeAttribute() { $this->attributes["\x74\171\x70\145"] = "\x61\144\x6d\x69\x6e"; } }

Function Calls

None

Variables

None

Stats

MD5 d26c4b73ba989cd56200b8173c2e7b84
Eval Count 0
Decode Time 47 ms