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 Dingo\Api\Tests\Stubs; use Dingo\Api\Routing\Helpers; use Illuminate\Rou..

Decoded Output download

<?php

namespace Dingo\Api\Tests\Stubs;

use Dingo\Api\Routing\Helpers;
use Illuminate\Routing\Controller;

class RoutingControllerStub extends Controller
{
    use Helpers;

    public function __construct()
    {
        $this->scopes('baz|bing');
        $this->scopes('bob', ['except' => ['index']]);

        $this->authenticateWith('red|black', ['only' => 'index']);

        $this->rateLimit(10, 20);

        $this->throttle(BasicThrottleStub::class);
    }

    public function index()
    {
        return 'foo';
    }

    public function show()
    {
        return 'bar';
    }

    public function getIndex()
    {
        return 'foo';
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Dingo\Api\Tests\Stubs;

use Dingo\Api\Routing\Helpers;
use Illuminate\Routing\Controller;

class RoutingControllerStub extends Controller
{
    use Helpers;

    public function __construct()
    {
        $this->scopes('baz|bing');
        $this->scopes('bob', ['except' => ['index']]);

        $this->authenticateWith('red|black', ['only' => 'index']);

        $this->rateLimit(10, 20);

        $this->throttle(BasicThrottleStub::class);
    }

    public function index()
    {
        return 'foo';
    }

    public function show()
    {
        return 'bar';
    }

    public function getIndex()
    {
        return 'foo';
    }
}

Function Calls

None

Variables

None

Stats

MD5 de2f836021b14f71ccb8c525c2239fe6
Eval Count 0
Decode Time 87 ms