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 /* __________________________________________________ | Obfuscated by YAK P..

Decoded Output download

<?php 
/*   __________________________________________________ 
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.1   | 
    |              on 2018-12-21 10:26:57              | 
    |    GitHub: https://github.com/pk-fr/yakpro-po    | 
    |__________________________________________________| 
*/ 
/* 
* Copyright (C) Incevio Systems, Inc - All Rights Reserved 
* Unauthorized copying of this file, via any medium is strictly prohibited 
* Proprietary and confidential 
* Written by Munna Khan <[email protected]>, September 2018 
*/ 
 namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Common\Authorizable; use Yajra\Datatables\Datatables; use App\Http\Controllers\Controller; use App\Repositories\Product\ProductRepository; use App\Http\Requests\Validations\CreateProductRequest; use App\Http\Requests\Validations\UpdateProductRequest; class ProductController extends Controller { use Authorizable; private $model; private $product; public function __construct(ProductRepository $product) { parent::__construct(); $this->model = trans("app.model.product"); $this->product = $product; } public function index() { $trashes = $this->product->trashOnly(); return view("admin.product.index", compact("trashes")); } public function getProducts(Request $request) { $products = $this->product->all(); return Datatables::of($products)->addColumn("option", function ($product) { return view("admin.partials.actions.product.options", compact("product")); })->editColumn("name", function ($product) { return view("admin.partials.actions.product.name", compact("product")); })->editColumn("gtin", function ($product) { return view("admin.partials.actions.product.gtin", compact("product")); })->editColumn("category", function ($product) { return view("admin.partials.actions.product.category", compact("product")); })->editColumn("inventories_count", function ($product) { return view("admin.partials.actions.product.inventories_count", compact("product")); })->rawColumns(["name", "gtin", "category", "inventories_count", "status", "option"])->make(true); } public function create() { return view("admin.product.create"); } public function store(CreateProductRequest $request) { $this->authorize("create", \App\Product::class); $product = $this->product->store($request); $request->session()->flash("success", trans("messages.created", ["model" => $this->model])); return response()->json($this->getJsonParams($product)); } public function show($id) { $product = $this->product->find($id); $this->authorize("view", $product); return view("admin.product._show", compact("product")); } public function edit($id) { $product = $this->product->find($id); $this->authorize("update", $product); $preview = $product->previewImages(); return view("admin.product.edit", compact("product", "preview")); } public function update(UpdateProductRequest $request, $id) { $product = $this->product->update($request, $id); $this->authorize("update", $product); $request->session()->flash("success", trans("messages.updated", ["model" => $this->model])); return response()->json($this->getJsonParams($product)); } public function trash(Request $request, $id) { $this->product->trash($id); return back()->with("success", trans("messages.trashed", ["model" => $this->model])); } public function restore(Request $request, $id) { $this->product->restore($id); return back()->with("success", trans("messages.restored", ["model" => $this->model])); } public function destroy(Request $request, $id) { $this->product->destroy($id); return back()->with("success", trans("messages.deleted", ["model" => $this->model])); } private function getJsonParams($product) { return ["id" => $product->id, "model" => "product", "redirect" => route("admin.catalog.product.index")]; } } 
 ?>

Did this file decode correctly?

Original Code

<?php
/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator  2.0.1   |
    |              on 2018-12-21 10:26:57              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
/*
* Copyright (C) Incevio Systems, Inc - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Munna Khan <[email protected]>, September 2018
*/
 namespace App\Http\Controllers\Admin; use Illuminate\Http\Request; use App\Common\Authorizable; use Yajra\Datatables\Datatables; use App\Http\Controllers\Controller; use App\Repositories\Product\ProductRepository; use App\Http\Requests\Validations\CreateProductRequest; use App\Http\Requests\Validations\UpdateProductRequest; class ProductController extends Controller { use Authorizable; private $model; private $product; public function __construct(ProductRepository $product) { parent::__construct(); $this->model = trans("\141\160\160\x2e\155\x6f\x64\x65\x6c\56\160\162\x6f\144\165\143\164"); $this->product = $product; } public function index() { $trashes = $this->product->trashOnly(); return view("\141\144\x6d\x69\x6e\56\x70\162\x6f\x64\165\x63\x74\x2e\151\x6e\144\x65\x78", compact("\164\162\x61\x73\x68\145\163")); } public function getProducts(Request $request) { $products = $this->product->all(); return Datatables::of($products)->addColumn("\x6f\160\x74\151\157\156", function ($product) { return view("\x61\x64\x6d\151\156\56\160\141\x72\164\x69\141\154\163\x2e\x61\143\x74\x69\x6f\156\x73\56\x70\162\x6f\144\x75\143\x74\56\x6f\x70\164\x69\157\156\163", compact("\x70\x72\x6f\x64\x75\x63\164")); })->editColumn("\156\141\x6d\145", function ($product) { return view("\x61\144\x6d\151\156\x2e\160\x61\x72\x74\x69\141\x6c\x73\56\141\x63\x74\151\157\156\x73\56\x70\x72\x6f\144\165\143\x74\x2e\156\x61\x6d\x65", compact("\160\x72\x6f\144\165\143\x74")); })->editColumn("\147\164\151\x6e", function ($product) { return view("\x61\144\x6d\151\x6e\56\x70\x61\x72\x74\151\x61\x6c\163\56\141\x63\x74\151\157\156\x73\x2e\160\x72\157\x64\165\x63\164\56\x67\164\x69\156", compact("\160\162\157\x64\x75\x63\x74")); })->editColumn("\x63\x61\x74\145\147\x6f\x72\171", function ($product) { return view("\x61\x64\x6d\151\x6e\x2e\160\141\162\164\151\141\154\163\x2e\x61\143\x74\151\157\156\x73\56\160\x72\157\x64\x75\143\x74\56\x63\141\x74\145\147\157\x72\x79", compact("\160\162\157\x64\x75\x63\164")); })->editColumn("\x69\156\166\x65\x6e\164\x6f\162\151\145\x73\137\x63\157\x75\x6e\164", function ($product) { return view("\141\x64\x6d\x69\156\x2e\160\141\162\x74\151\141\154\163\56\141\x63\164\x69\x6f\x6e\163\56\160\162\x6f\144\165\x63\164\56\x69\156\166\x65\156\164\157\x72\151\x65\163\137\x63\x6f\x75\156\164", compact("\160\x72\x6f\144\165\143\x74")); })->rawColumns(["\x6e\x61\155\145", "\147\164\x69\156", "\x63\141\164\145\x67\157\x72\x79", "\151\x6e\x76\145\156\164\157\162\151\x65\x73\137\143\x6f\165\156\164", "\x73\x74\141\x74\x75\x73", "\157\160\x74\x69\157\156"])->make(true); } public function create() { return view("\x61\x64\155\x69\x6e\x2e\x70\162\x6f\144\165\x63\x74\56\143\162\145\141\x74\145"); } public function store(CreateProductRequest $request) { $this->authorize("\x63\162\145\141\164\145", \App\Product::class); $product = $this->product->store($request); $request->session()->flash("\x73\x75\x63\143\145\x73\x73", trans("\x6d\x65\163\163\x61\147\145\x73\56\143\162\x65\x61\164\x65\144", ["\155\x6f\144\x65\154" => $this->model])); return response()->json($this->getJsonParams($product)); } public function show($id) { $product = $this->product->find($id); $this->authorize("\166\x69\x65\x77", $product); return view("\x61\144\x6d\x69\x6e\56\160\162\x6f\144\165\x63\x74\x2e\137\163\150\x6f\167", compact("\x70\162\x6f\x64\x75\x63\164")); } public function edit($id) { $product = $this->product->find($id); $this->authorize("\x75\x70\x64\141\x74\145", $product); $preview = $product->previewImages(); return view("\141\x64\155\x69\x6e\56\x70\162\157\144\165\x63\x74\56\145\x64\151\164", compact("\x70\x72\x6f\144\165\x63\x74", "\x70\162\x65\166\x69\145\x77")); } public function update(UpdateProductRequest $request, $id) { $product = $this->product->update($request, $id); $this->authorize("\x75\x70\144\141\164\x65", $product); $request->session()->flash("\x73\165\143\x63\x65\x73\163", trans("\x6d\x65\x73\163\x61\147\x65\163\56\x75\x70\x64\141\164\145\x64", ["\x6d\157\144\x65\x6c" => $this->model])); return response()->json($this->getJsonParams($product)); } public function trash(Request $request, $id) { $this->product->trash($id); return back()->with("\163\x75\143\143\x65\x73\x73", trans("\x6d\145\163\x73\141\147\145\163\x2e\164\x72\141\163\150\145\x64", ["\x6d\157\144\145\x6c" => $this->model])); } public function restore(Request $request, $id) { $this->product->restore($id); return back()->with("\163\165\143\x63\145\x73\163", trans("\155\145\163\x73\x61\147\x65\x73\x2e\x72\x65\x73\164\157\162\145\144", ["\x6d\x6f\x64\x65\154" => $this->model])); } public function destroy(Request $request, $id) { $this->product->destroy($id); return back()->with("\x73\x75\143\143\x65\x73\163", trans("\x6d\x65\x73\163\141\147\145\x73\56\144\145\154\x65\164\145\x64", ["\155\157\144\x65\x6c" => $this->model])); } private function getJsonParams($product) { return ["\151\x64" => $product->id, "\155\x6f\144\145\x6c" => "\160\162\x6f\x64\165\143\x74", "\x72\145\x64\x69\x72\145\x63\164" => route("\141\144\x6d\151\x6e\56\143\141\164\141\x6c\x6f\147\x2e\x70\162\x6f\x64\x75\143\x74\x2e\x69\156\144\145\x78")]; } }

Function Calls

None

Variables

None

Stats

MD5 366428d3e0f2e7306b775d8c9773f1a4
Eval Count 0
Decode Time 88 ms