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 Modules\Recipe\Sidebar; use Maatwebsite\Sidebar\Group; use Maatwebsite\S..

Decoded Output download

<?php

namespace Modules\Recipe\Sidebar;

use Maatwebsite\Sidebar\Group;
use Maatwebsite\Sidebar\Item;
use Maatwebsite\Sidebar\Menu;
use Modules\Core\Contracts\Authentication;

class SidebarExtender implements \Maatwebsite\Sidebar\SidebarExtender
{
    /**
     * @var Authentication
     */
    protected $auth;

    /**
     * @internal param Guard $guard
     */
    public function __construct(Authentication $auth)
    {
        $this->auth = $auth;
    }

    /**
     * @return Menu
     */
    public function extendWith(Menu $menu)
    {
        $menu->group(trans('core::sidebar.content'), function (Group $group) {
            $group->item('Recipe', function (Item $item) {
                $item->icon('fa fa-copy');
                $item->weight(10);
                $item->authorize(
                    $this->auth->hasAccess('recipe.recipes.index')
                );
                $item->item(trans('recipe::recipes.title.recipes'), function (Item $item) {
                    $item->icon('fa fa-copy');
                    $item->weight(0);
                    $item->append('admin.recipe.recipe.create');
                    $item->route('admin.recipe.recipe.index');
                    $item->authorize(
                        $this->auth->hasAccess('recipe.recipes.index')
                    );
                });
            });
        });

        return $menu;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Modules\Recipe\Sidebar;

use Maatwebsite\Sidebar\Group;
use Maatwebsite\Sidebar\Item;
use Maatwebsite\Sidebar\Menu;
use Modules\Core\Contracts\Authentication;

class SidebarExtender implements \Maatwebsite\Sidebar\SidebarExtender
{
    /**
     * @var Authentication
     */
    protected $auth;

    /**
     * @internal param Guard $guard
     */
    public function __construct(Authentication $auth)
    {
        $this->auth = $auth;
    }

    /**
     * @return Menu
     */
    public function extendWith(Menu $menu)
    {
        $menu->group(trans('core::sidebar.content'), function (Group $group) {
            $group->item('Recipe', function (Item $item) {
                $item->icon('fa fa-copy');
                $item->weight(10);
                $item->authorize(
                    $this->auth->hasAccess('recipe.recipes.index')
                );
                $item->item(trans('recipe::recipes.title.recipes'), function (Item $item) {
                    $item->icon('fa fa-copy');
                    $item->weight(0);
                    $item->append('admin.recipe.recipe.create');
                    $item->route('admin.recipe.recipe.index');
                    $item->authorize(
                        $this->auth->hasAccess('recipe.recipes.index')
                    );
                });
            });
        });

        return $menu;
    }
}

Function Calls

None

Variables

None

Stats

MD5 21b226c4b53181b9980aa34a23b93e84
Eval Count 0
Decode Time 125 ms